Menu

converting characters to HTML

Help
suri
2007-01-25
2013-04-27
  • suri

    suri - 2007-01-25

    Hi,
    I have an requirement to convert the data FROM: &lt;p&gt;hello &lt; world &lt;/p&gt; TO: <p> hello &lt; world </p>.

    Any suggestions please...

    Thanks & Regards,
    Suri.

     
    • Derrick Oswald

      Derrick Oswald - 2007-01-26

      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.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.