| HTMLEncoder purpose.
This is a class taken from the java.sun.com Developer forums that can be
used to encode/decode a String to/from HTML text.
Capabilities:
-
encode: Encodes a String into HTML text
-
decode: Takes an HTML text and decodes it to a normal String
Example Use:
HTMLEncoder.encode("K�nig"); //will return "König" (For JavaDocs: "König")
HTMLEncoder.decode("König"); //will return "K�nig"
author: rgould, Refractions Research, Inc. author: $Author: dmzwiers $ (last modification) version: $Id: HTMLEncoder.java 7048 2007-06-19 16:34:53Z amanfredi $ |