开发者

Tagsoup , tag as text to another tag

开发者 https://www.devze.com 2023-03-25 21:48 出处:网络
hello guys i hope this message finds you all well. So my questions has to do with tagsoup , what i want to achieve is to have a tag as a text of another tag, in specific , i want the <a href=\"http

hello guys i hope this message finds you all well. So my questions has to do with tagsoup , what i want to achieve is to have a tag as a text of another tag, in specific , i want the <a href="http://twitt开发者_如何学Goer.com/devices" rel="nofollow">to be the TEXT of the tag <SOURCE> , but i cannot seem to do it since each time it sees an open pointy bracket it interprets that as a new tag. So is there any way to perform this ?

Thanks in advance.


How about using &gt; and &lt; instead of > and <? Or just using some library to html-escape the the text?

Edit: see for example Recommended method for escaping HTML in Java

0

精彩评论

暂无评论...
验证码 换一张
取 消