org.apache.beehive.netui.tags
Class HtmlUtils

Object
  extended by HtmlUtils

public class HtmlUtils
extends Object

This class provides a set of static methods that provide HTML utility code.


Constructor Summary
HtmlUtils()
           
 
Method Summary
static String addParams(String url, Map params, String encoding)
           
static boolean containsEntity(String value)
          This method will determine if the value passed in contains an entity.
static boolean containsHtml(String value)
           
static String escapeEscapes(String val)
           
static void filter(String value, AbstractRenderAppender results)
          Filter the specified value for characters that are sensitive to HTML interpreters.
static void filter(String value, AbstractRenderAppender result, boolean markupHTMLSpaceReturn)
          Filter the specified string for characters that are sensitive to HTML interpreters, returning the string with these characters replaced by the corresponding character entities.
static String legacyEscapeEscapes(String val)
           
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlUtils

public HtmlUtils()
Method Detail

containsHtml

public static boolean containsHtml(String value)

filter

public static void filter(String value,
                          AbstractRenderAppender results)
Filter the specified value for characters that are sensitive to HTML interpreters. It will return a string with these characters replaced with HTML entities. This method calls the overloaded method with markupHTMLSpaceReturn set to false.

Parameters:
value - The String value to be filtered and returned.

filter

public static void filter(String value,
                          AbstractRenderAppender result,
                          boolean markupHTMLSpaceReturn)
Filter the specified string for characters that are sensitive to HTML interpreters, returning the string with these characters replaced by the corresponding character entities.

Parameters:
value - The String value to be filtered and returned.
markupHTMLSpaceReturn - convert space characters and return characters to &nbsp; and <br /> marketup for html.

escapeEscapes

public static String escapeEscapes(String val)

legacyEscapeEscapes

public static String legacyEscapeEscapes(String val)

addParams

public static String addParams(String url,
                               Map params,
                               String encoding)
                        throws JspException
Parameters:
url -
params -
encoding -
Returns:
String
Throws:
JspException

containsEntity

public static boolean containsEntity(String value)
This method will determine if the value passed in contains an entity.

Returns:
boolean