flexjson.transformer
Class HtmlEncoderTransformer
java.lang.Object
flexjson.transformer.AbstractTransformer
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlEncoderTransformer
public HtmlEncoderTransformer()
transform
public void transform(Object value)
Copyright © 2014. All Rights Reserved.