Package ca.cgjennings.text
Class EscapeUtil
- java.lang.Object
-
- ca.cgjennings.text.EscapeUtil
-
public final class EscapeUtil extends java.lang.Object
String escape utilities.- Since:
- 3.4
- Author:
- Chris Jennings
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static java.lang.String
escapeHtml(java.lang.String source)
Escapes characters that have special meaning inside HTML.
-
-
-
Method Detail
-
escapeHtml
public static java.lang.String escapeHtml(java.lang.String source)
Escapes characters that have special meaning inside HTML. Not suitable for use to escape text for use as an attribute of an HTML element.- Parameters:
source
- the string to escape- Returns:
- the escaped string, or the original string
-
-