com.bigdata.util
Class HTMLUtility

java.lang.Object
  extended by com.bigdata.util.HTMLUtility

public class HTMLUtility
extends Object

Collection of some utility methods for HTML.

Version:
$Id: HTMLUtility.java 2265 2009-10-26 12:51:06Z thompsonbry $
Author:
Bryan Thompson

Constructor Summary
HTMLUtility()
           
 
Method Summary
static String escapeForXHTML(String s)
           Sometimes you want to escape something without using a DOM instance.
static String escapeForXMLName(String s)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HTMLUtility

public HTMLUtility()
Method Detail

escapeForXHTML

public static String escapeForXHTML(String s)

Sometimes you want to escape something without using a DOM instance. This method escapes a String value so that it may be written as the value of an XML attribute in a manner that is also compatible with HTML. Note that the best solution is to use a DOM instance, which will automatically escape attribute values and PCDATA as they are inserted into the DOM instance.

The following notes are excerpted from the HTML and XML specifications


escapeForXMLName

public static String escapeForXMLName(String s)


Copyright © 2006-2009 SYSTAP, LLC. All Rights Reserved.