Programming Tips - How can I make some text safe to display on a web page?

Date: 2014sep8 Language: Java Q. How can I make some text safe to display on a web page? A. Use:
okForWeb = StringHelper.escapeHTML("some text & things");
Download it here https://ostermiller.org/utils/src/StringHelper.java.html GPL license