Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java methods for converting plain text to html??

843834Oct 15 2002 — edited Mar 4 2003
Hello

I'm looking for some JDK methods that can convert plain text into html.

For example,
Zero is <b>lower</b> than one: 0 < 1
I want to convert this example into html. Word lower should be bold while signs after < should still appear. This means, the method I am looking for should convert signs like <, > into html special chars.
String htmlText = XXX.convert(plainText);
Thanks if you answer quickly!

Michael Heuberger
from Switzerland
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 1 2003
Added on Oct 15 2002
6 comments
329 views