<iframe src="https://expmle.com/subdirectory/sample_title" />
我怎么能够create and append below <a>
使用上面代码中的标签XPath
and 电报即时查看 https://instantview.telegram.org/docs功能?
<a href="https://expmle.com/subdirectory/sample_title">sample_title</a>
我想提取整个src
and 最后部分并利用它们来创建<a>
tag.
任何建议将不胜感激:)
这应该可以正常工作。
<a>: //iframe # Find iframe and convert it to <a>
@set_attr(href, ./@src) # Set href attribute from src
$anchor # Create variable for current <a>
@set_attr(text, ./@href) # We set new attribute for link which will processed by @match function, then @text attribute will be replaced by result of the @match
@match("\\w+_\\w+"): $@/@text # Now we find our future name of the link "sample_name" (this function will replace all in @text by our new name
@prepend(@text): $anchor # And then put this name to his $anchor
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)