|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectflexjson.HTMLEncoder
public class HTMLEncoder
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 |
|---|
public HTMLEncoder()
| Method Detail |
|---|
public java.lang.String transform(java.lang.Object value)
transform in interface Transformer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||