org.montsuqi.util
Class StringUtils

java.lang.Object
  extended by org.montsuqi.util.StringUtils

public class StringUtils
extends java.lang.Object

A class that holds utility methods for string manipulation.


Method Summary
static java.lang.String escapeHTML(java.lang.String src)
          Escapes '&dquot;', '<', '>' and '&' in the given string to '&dquot;', '&lt;', '&gt;' and '&amp;' respectively.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

escapeHTML

public static java.lang.String escapeHTML(java.lang.String src)

Escapes '&dquot;', '<', '>' and '&' in the given string to '&dquot;', '&lt;', '&gt;' and '&amp;' respectively.

Parameters:
src - a string to escape characters in it.
Returns:
new string with html escapes.