superwaba.ext.xplat.util
Class EscapeHtml

java.lang.Object
  |
  +--superwaba.ext.xplat.util.EscapeHtml

public class EscapeHtml
extends java.lang.Object

A class that can be used to convert escape characters in a Html string.

Since:
SuperWaba 5.71

Field Summary
static java.lang.StringBuffer sbuf
          The temporary buffer used by the convertion methods.
 
Constructor Summary
EscapeHtml()
           
 
Method Summary
static java.lang.String escape(java.lang.String s)
          Converts special chars into escaped sequences.
static java.lang.String unescape(java.lang.String escaped)
          Converts escaped sequences into special chars.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sbuf

public static java.lang.StringBuffer sbuf
The temporary buffer used by the convertion methods.
Constructor Detail

EscapeHtml

public EscapeHtml()
Method Detail

escape

public static final java.lang.String escape(java.lang.String s)
Converts special chars into escaped sequences. Note that the space is NOT converted.

unescape

public static final java.lang.String unescape(java.lang.String escaped)
Converts escaped sequences into special chars. Note that the space IS converted if it appears escaped.