Is there a way to convert a string to a string that will display properly in a web document? For example, changing the string
"<Hello>"
To
"<Hello>"
StringEscapeUtils
has functions designed exactly for this:
http://commons.apache.org/proper/commons-lang/javadocs/api-3.1/org/apache/commons/lang3/StringEscapeUtils.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With