Dave's Brain

Browse - 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

Add a comment

Sign in to add a comment
Copyright © 2008-2017, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.