org.openprivacy.reptile.extensions
Class EscapeExtension

java.lang.Object
  |
  +--org.openprivacy.reptile.extensions.EscapeExtension

public class EscapeExtension
extends java.lang.Object

Provides misc tools for escaping content.

Version:
$Id: EscapeExtension.java,v 1.4 2002/02/05 04:54:03 burton Exp $
Author:
Kevin A. Burton

Constructor Summary
EscapeExtension()
           
 
Method Summary
 java.lang.String attributes(java.lang.String content)
          Escape content so that it can be placed within an attribute.
 java.lang.String encode(java.lang.String data)
          Encode the given data so that it can be part of a URL
 java.lang.String html(java.lang.String content)
          Escapes HTML 'lite' content.
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EscapeExtension

public EscapeExtension()
Method Detail

attributes

public java.lang.String attributes(java.lang.String content)
Escape content so that it can be placed within an attribute.


html

public java.lang.String html(java.lang.String content)
Escapes HTML 'lite' content. A good example would be the escaping of asdf string. Given an input of (YOU HAVE TO VIEW SOURCE TO SEE THIS EXAMPLE CORRECTLY) <i>asdf</i> this will escape the content to asdf This method should ONLY return valid XHTML elements


encode

public java.lang.String encode(java.lang.String data)
Encode the given data so that it can be part of a URL


main

public static void main(java.lang.String[] args)