Reputation: 11
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://twitter.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.
Upvotes: 0
Views: 149
Reputation: 23184
How about using >
and <
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
Upvotes: 1