net.charlesames.utility.html
Class HtmlMethods

java.lang.Object
  extended by net.charlesames.utility.html.HtmlMethods

public abstract class HtmlMethods
extends java.lang.Object

HTML encoding methods. Source: http://www.owasp.org/index.php/How_to_perform_HTML_entity_encoding_in_Java

Author:
Unknown

Constructor Summary
HtmlMethods()
           
 
Method Summary
static java.lang.String htmlEncode(java.lang.String s)
          HTML encode a string
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlMethods

public HtmlMethods()
Method Detail

htmlEncode

public static java.lang.String htmlEncode(java.lang.String s)
HTML encode a string

Parameters:
s - The unencoded string
Returns:
The encoded string