EAF 7.4 Implementation

com.lutris.util
Class HtmlEncoder

java.lang.Object
  extended by com.lutris.util.HtmlEncoder

public final class HtmlEncoder
extends java.lang.Object

This class contains a utility method for encoding a String so that it may be safely embedded within a HTML document without affecting the formatting of the document.

The following characters are encoded:

Author:
Kyle Clark

Constructor Summary
HtmlEncoder()
           
 
Method Summary
static java.lang.String encode(java.lang.String s)
          Translates a string into a HTML safe format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlEncoder

public HtmlEncoder()
Method Detail

encode

public static java.lang.String encode(java.lang.String s)
Translates a string into a HTML safe format.

Parameters:
s - the string to encode
Returns:
the encoded string

EAF 7.4 Implementation