public class HtmlHelpers extends Object
Constructor and Description |
---|
HtmlHelpers() |
Modifier and Type | Method and Description |
---|---|
static String |
escape(String value)
Replace the characters ampersand, less than, and greater than with
literal strings so that they are not interpreted as HTML control characters.
|
static void |
main(String[] args)
Main driver for test cases.
|
protected static void |
test(String value)
Test driver for process of escaping strings;
|
static String |
unescape(String value)
Reverse the escaping of the control characters to get the original string.
|
public HtmlHelpers()
public static String escape(String value)
This process is known as escaping the control characters.
value
- original stringpublic static String unescape(String value)
value
- escaped stringprotected static void test(String value)
value
- string to be converted