public final class HtmlUtil extends Object
Modifier and Type | Method and Description |
---|---|
static String |
escapeQuotes(String input)
Escapes all quotes (single and double) with an escape character (unless
the quote has already been escaped).
|
static String |
quoteHtml(String input)
Changes "&", "<", ">", """ and "'" in the input string.
|
public static String quoteHtml(String input)
input
- Input string.public static String escapeQuotes(String input)
input
- StringCopyright © 2008–2018. All rights reserved.