The org.htmlparser.util.Translate class does the conversion you require.
However, it's not selective enough to only convert some of the text.
You would probably need to convert all the text, then strip out the tags and convert the text back.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I have an requirement to convert the data FROM: <p>hello < world </p> TO: <p> hello < world </p>.
Any suggestions please...
Thanks & Regards,
Suri.
The org.htmlparser.util.Translate class does the conversion you require.
However, it's not selective enough to only convert some of the text.
You would probably need to convert all the text, then strip out the tags and convert the text back.