net.ramapuram.thomas.webapp.jsp
Class EscapeXml

java.lang.Object
  extended by net.ramapuram.thomas.webapp.jsp.EscapeXml

public class EscapeXml
extends java.lang.Object

Handles escaping of characters that could be interpreted as XML markup.

The specification for <c:out> defines the following character conversions to be applied:

CharacterCharacter Entity Code
<&lt;
>&gt;
&&amp;
'&#039;
"&#034;


Constructor Summary
EscapeXml()
           
 
Method Summary
static java.lang.String escape(java.lang.String src)
          Escape a string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EscapeXml

public EscapeXml()
Method Detail

escape

public static java.lang.String escape(java.lang.String src)
Escape a string.

Parameters:
src - the string to escape; must not be null
Returns:
the escaped string


Copyright © 2011. All Rights Reserved.