public class HtmlUtil
extends java.lang.Object
Constructor and Description |
---|
HtmlUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
combineValues(java.util.Collection<java.lang.String> values)
One of a pair of methods (the other is splitValues) that is used to combine several
un-encoded values into a single delimited, encoded value for placement into a
hidden field.
|
static java.lang.String |
encode(java.lang.String fragment)
Replaces special HTML characters from the set [<, >, ", ', &] with their HTML
escape codes.
|
static java.util.Collection<java.lang.String> |
splitValues(java.lang.String value)
Takes in a String produced by combineValues and returns a Collection of values that
contains the same values as originally supplied to combineValues.
|
public static java.lang.String encode(java.lang.String fragment)
fragment
- a String fragment that might have HTML special characters in itpublic static java.lang.String combineValues(java.util.Collection<java.lang.String> values)
values
- One or more values which are to be combinedpublic static java.util.Collection<java.lang.String> splitValues(java.lang.String value)
value
- a String value produced by? Copyright 2005-2006, Stripes Development Team.