Package org.apache.velocity.anakia
Class Escape
java.lang.Object
org.apache.velocity.anakia.Escape
This class is for escaping CDATA sections. The code was
"borrowed" from the JDOM code. Also included is escaping
the " -> " character and the conversion of newlines
to the platform line separator.
- Version:
- $Id: Escape.java 463298 2006-10-12 16:10:32Z henning $
- Author:
- Will Glass-Husain, Jon S. Stevens
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
LINE_SEPARATOR
-
-
Constructor Details
-
Escape
public Escape()Empty constructor
-
-
Method Details
-
getText
Do the escaping.- Parameters:
st
-- Returns:
- The escaped text.
-