<a>

时间:2019-03-09 10:59:17

标签: xpath telegram xpath-2.0 instant-view

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"/>

2 个答案:

答案 0 :(得分:1)

您可以将包装的图像分成2个分离的标签,然后会生成即时视图:

@split_parent: //a/img

在您的示例中,这只是化身,必须将其删除,因为Intant View只需要没有评论的文章。您可以使用该代码将其删除,然后一切正常:

@remove: //div[@class="someclass"]

答案 1 :(得分:0)

您如何将<a>设为<div>

<div>: //a[.//img]

相关问题