public class HTMLEscaper extends Object
| Constructor and Description |
|---|
HTMLEscaper() |
| Modifier and Type | Method and Description |
|---|---|
static String |
escape(String nonHTMLsrc)
This method will take the input and escape characters that have
an HTML entity representation.
|
static void |
main(String[] args)
A little bit of unit testing
|
public static void main(String[] args)
args - test command line parameterspublic static final String escape(String nonHTMLsrc)
nonHTMLsrc - String containing the text to make HTML-safeCopyright © 2019. All rights reserved.