This is a discussion on escaping html characters in Java? Really? - Java ; Just wondering... ... Is there a class or method in the API that will automatically 'escape' all the HTML special characters in a String, or a file? Something like the 'URLEncoder' class where the space character " " is converted ...
Just wondering... ...
Is there a class or method in the API that will automatically 'escape' all
the HTML special characters in a String, or a file? Something like the
'URLEncoder' class where the space character " " is converted into a plus
sign "+", for URL complience....
Example:
String myString = "<TD VALIGN=\"top\" CLASS=\"NavBarCell3\"><FONT
SIZE=\"-2\">";
Lot's of tedious escaping eh? Does this mean I can no longer avoid learning
what 'regular expressions' are? Naaah, there MUST be a tool, right?
Cheers,
//Simon