flexjson
Class HTMLEncoder

java.lang.Object
  extended by flexjson.HTMLEncoder
All Implemented Interfaces:
Transformer

public class HTMLEncoder
extends java.lang.Object
implements Transformer

A helper class provided out of the box to encode characters that HTML can't support natively like <, >, &, or ". This will scan the value passed to the transform method and replace any of these special characters with the HTML encoded equivalent. This method will NOT work for HTML text because it will blindly encode all characters it sees which means it will strip out any HTML tags.


Constructor Summary
HTMLEncoder()
           
 
Method Summary
 java.lang.String transform(java.lang.Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLEncoder

public HTMLEncoder()
Method Detail

transform

public java.lang.String transform(java.lang.Object value)
Specified by:
transform in interface Transformer