Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Element <img> is not supported in <a>

Error:

An error has occurred while processing your template

Code:

Element <img> is not supported in <a>: <img alt="" data-src="https://secure.gravatar.com/avatar/3351cc569871d023d58bcd1029b48437?s=26&amp;d=mm&amp;r=g" class="avatar avatar-26 photo avatar-default" height="26" width="26"/>
like image 490
sammy g Avatar asked Oct 20 '25 02:10

sammy g


1 Answers

You can split wrapped image into 2 separeted tags and Instant View will be generated:

@split_parent: //a/img

In your example it's just avatar, that must be removed, because Intant View requred only articles without any comments. You can delete it with that code and all be working fine:

@remove: //div[@class="someclass"]
like image 88
Tony Avatar answered Oct 22 '25 03:10

Tony



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!