flexjson.transformer
Class HtmlEncoderTransformer

java.lang.Object
  extended by flexjson.transformer.AbstractTransformer
      extended by flexjson.transformer.HtmlEncoderTransformer
All Implemented Interfaces:
Inline, Transformer

public class HtmlEncoderTransformer
extends AbstractTransformer

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
HtmlEncoderTransformer()
           
 
Method Summary
 void transform(Object value)
           
 
Methods inherited from class flexjson.transformer.AbstractTransformer
getContext, isInline
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlEncoderTransformer

public HtmlEncoderTransformer()
Method Detail

transform

public void transform(Object value)


Copyright © 2014. All Rights Reserved.