org.apache.manifoldcf.ui.util
Class Encoder

java.lang.Object
  extended by org.apache.manifoldcf.ui.util.Encoder

public class Encoder
extends java.lang.Object

Various useful encoding methods for working with html


Field Summary
static java.lang.String _rcsid
           
 
Constructor Summary
Encoder()
           
 
Method Summary
static java.lang.String attributeEscape(java.lang.String value)
          Escape a string that's inside an html attribute.
static java.lang.String attributeJavascriptEscape(java.lang.String value)
          Escape a string that's inside an html attribute and thence inside javascript.
static java.lang.String bodyEscape(java.lang.String value)
          Escape a string that's inside an html body.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_rcsid

public static final java.lang.String _rcsid
See Also:
Constant Field Values
Constructor Detail

Encoder

public Encoder()
Method Detail

attributeJavascriptEscape

public static java.lang.String attributeJavascriptEscape(java.lang.String value)
Escape a string that's inside an html attribute and thence inside javascript.

Parameters:
value - is the input.
Returns:
the escaped string.

attributeEscape

public static java.lang.String attributeEscape(java.lang.String value)
Escape a string that's inside an html attribute.

Parameters:
value - is the input.
Returns:
the escaped string.

bodyEscape

public static java.lang.String bodyEscape(java.lang.String value)
Escape a string that's inside an html body.

Parameters:
value - is the input.
Returns:
the escaped string.