public class HtmlUtil extends Object
| Constructor and Description |
|---|
HtmlUtil() |
| Modifier and Type | Method and Description |
|---|---|
static String |
combineValues(Collection<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 String |
encode(String fragment)
Replaces special HTML characters from the set [<, >, ", ', &] with their HTML
escape codes.
|
static Collection<String> |
splitValues(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 String encode(String fragment)
fragment - a String fragment that might have HTML special characters in itpublic static String combineValues(Collection<String> values)
values - One or more values which are to be combinedpublic static Collection<String> splitValues(String value)
value - a String value produced by© Copyright 2005-2006, Stripes Development Team.