This discussion is archived
2 Replies Latest reply: Aug 11, 2013 6:02 PM by user12846934 RSS

HTMLEditorKit fails to compile <br> tags

user12846934 Newbie
Currently Being Moderated

Hi all,


I use HTMLEditorKit to parse strings with HTML tags. The library has successfully detected and remove embedded tags. However, first thing I discovered was that it parsed <br> into spaces and spaces are compiled into spaces whose ASCII codes are 60s, not the normal one (#32).


So I just want to ask what can HTMLEditorKit do, what are potential bugs and is there any better alternative for a HTML parse in Java?


Thanks very much!


  • Correct Answers - 10 points
  • Helpful Answers - 5 points