public class ContentReader extends Object
| Constructor and Description |
|---|
ContentReader() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getEscapeHtmlContent(String content)
Escapes the characters in a content using HTML entities.
|
static String |
getUnescapeIllegalJcrContent(String content)
Unescapes previously escaped jcr chars.
|
static String |
getXSSCompatibilityContent(String content)
Gets the content compatibility with XSS problems.
|
static String |
simpleEscapeHtml(String value)
Escape html avoid XSS
|
public static String getXSSCompatibilityContent(String content)
Gets the content compatibility with XSS problems. This method will do
- Unescapes previously escaped jcr chars - Escapes the characters in a the content using HTML entitiescontent - the nodepublic static String getEscapeHtmlContent(String content)
Escapes the characters in a content using HTML entities.
For example:
"bread" and "butter"
"bread" & "butter"
content - to escape, may be nullpublic static String getUnescapeIllegalJcrContent(String content)
Unescapes previously escaped jcr chars.
content - the content to unescapeCopyright © 2003–2019 eXo Platform SAS. All rights reserved.