Package com.hannonhill.cascade.velocity
Class CascadeEscapeTool
- java.lang.Object
-
- org.apache.velocity.tools.generic.SafeConfig
-
- org.apache.velocity.tools.generic.EscapeTool
-
- com.hannonhill.cascade.velocity.CascadeEscapeTool
-
public class CascadeEscapeTool extends org.apache.velocity.tools.generic.EscapeTool
-
-
Constructor Summary
Constructors Constructor Description CascadeEscapeTool()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getB()
java.lang.String
getBackslash()
java.lang.String
getD()
java.lang.String
getDollar()
java.lang.String
getE()
java.lang.String
getExclamation()
java.lang.String
getH()
java.lang.String
getHash()
java.lang.String
getN()
java.lang.String
getNewline()
java.lang.String
getQ()
java.lang.String
getQuote()
java.lang.String
getS()
java.lang.String
getSingleQuote()
java.lang.String
html(java.lang.Object string)
java.lang.String
javascript(java.lang.Object string)
java.lang.String
unescapeHtml(java.lang.String content)
java.lang.String
unescapeJavascript(java.lang.String content)
java.lang.String
unescapeXml(java.lang.String content)
java.lang.String
unicode(java.lang.Object code)
java.lang.String
url(java.lang.Object string)
java.lang.String
xml(java.lang.Object string)
-
Methods inherited from class org.apache.velocity.tools.generic.EscapeTool
configure, dumpString, getKey, java, propertyKey, propertyValue, setKey, sql, velocity
-
-
-
-
Method Detail
-
javascript
public java.lang.String javascript(java.lang.Object string)
- Overrides:
javascript
in classorg.apache.velocity.tools.generic.EscapeTool
-
html
public java.lang.String html(java.lang.Object string)
- Overrides:
html
in classorg.apache.velocity.tools.generic.EscapeTool
-
url
public java.lang.String url(java.lang.Object string)
- Overrides:
url
in classorg.apache.velocity.tools.generic.EscapeTool
-
xml
public java.lang.String xml(java.lang.Object string)
- Overrides:
xml
in classorg.apache.velocity.tools.generic.EscapeTool
-
unicode
public java.lang.String unicode(java.lang.Object code)
- Overrides:
unicode
in classorg.apache.velocity.tools.generic.EscapeTool
-
getDollar
public java.lang.String getDollar()
- Overrides:
getDollar
in classorg.apache.velocity.tools.generic.EscapeTool
-
getD
public java.lang.String getD()
- Overrides:
getD
in classorg.apache.velocity.tools.generic.EscapeTool
-
getHash
public java.lang.String getHash()
- Overrides:
getHash
in classorg.apache.velocity.tools.generic.EscapeTool
-
getH
public java.lang.String getH()
- Overrides:
getH
in classorg.apache.velocity.tools.generic.EscapeTool
-
getBackslash
public java.lang.String getBackslash()
- Overrides:
getBackslash
in classorg.apache.velocity.tools.generic.EscapeTool
-
getB
public java.lang.String getB()
- Overrides:
getB
in classorg.apache.velocity.tools.generic.EscapeTool
-
getQuote
public java.lang.String getQuote()
- Overrides:
getQuote
in classorg.apache.velocity.tools.generic.EscapeTool
-
getQ
public java.lang.String getQ()
- Overrides:
getQ
in classorg.apache.velocity.tools.generic.EscapeTool
-
getSingleQuote
public java.lang.String getSingleQuote()
- Overrides:
getSingleQuote
in classorg.apache.velocity.tools.generic.EscapeTool
-
getS
public java.lang.String getS()
- Overrides:
getS
in classorg.apache.velocity.tools.generic.EscapeTool
-
getNewline
public java.lang.String getNewline()
- Overrides:
getNewline
in classorg.apache.velocity.tools.generic.EscapeTool
-
getN
public java.lang.String getN()
- Overrides:
getN
in classorg.apache.velocity.tools.generic.EscapeTool
-
getExclamation
public java.lang.String getExclamation()
- Overrides:
getExclamation
in classorg.apache.velocity.tools.generic.EscapeTool
-
getE
public java.lang.String getE()
- Overrides:
getE
in classorg.apache.velocity.tools.generic.EscapeTool
-
unescapeJavascript
public java.lang.String unescapeJavascript(java.lang.String content)
-
unescapeHtml
public java.lang.String unescapeHtml(java.lang.String content)
-
unescapeXml
public java.lang.String unescapeXml(java.lang.String content)
-
-