org.freeshell.zs.common
Class HtmlManipulator

java.lang.Object
  extended by org.freeshell.zs.common.HtmlManipulator

public class HtmlManipulator
extends java.lang.Object

Perform HTML-related operations.


Constructor Summary
HtmlManipulator()
           
 
Method Summary
static java.lang.String quoteHtml(java.lang.String s)
          Quote a specified string as HTML, by replacing all special characters with their equivalent HTML entities.
static java.lang.String replaceHtmlEntities(java.lang.String s)
          Replace HTML entities in a given string with their Unicode character representations.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlManipulator

public HtmlManipulator()
Method Detail

replaceHtmlEntities

public static java.lang.String replaceHtmlEntities(java.lang.String s)
Replace HTML entities in a given string with their Unicode character representations.

Parameters:
s - input string
Returns:
string with HTML entities replaced

quoteHtml

public static java.lang.String quoteHtml(java.lang.String s)
Quote a specified string as HTML, by replacing all special characters with their equivalent HTML entities.

Parameters:
s - input string
Returns:
string with special characters replaced