◆ escape()
static String org.turro.html.HTMLEntities.escape |
( |
String |
html | ) |
|
|
static |
Definition at line 116 of file HTMLEntities.java.
117 if(html !=
null &&
"ISO-8859-1".equals(ElephantContext.getEncoding())) {
118 for(String entity : Entities_ISO88591) {
119 html = html.replaceAll(
"\\" + StringEscapeUtils.unescapeHtml4(entity),
"\\" + entity);
◆ plainWhenPossible()
static String org.turro.html.HTMLEntities.plainWhenPossible |
( |
String |
html | ) |
|
|
static |
Definition at line 134 of file HTMLEntities.java.
135 if(html !=
null &&
"ISO-8859-1".equals(ElephantContext.getEncoding())) {
136 html = html.replaceAll(
"[\\‘\\’\\ ]",
"'")
137 .replaceAll(
"[\\“\\”\\\\]",
"\"")
138 .replaceAll(
"[\\…]",
"\\.\\.\\.")
139 .replaceAll(
"[\\•]",
"\\·")
140 .replaceAll(
"[\\—]",
"\\-");
◆ unescape()
static String org.turro.html.HTMLEntities.unescape |
( |
String |
html | ) |
|
|
static |
Definition at line 125 of file HTMLEntities.java.
126 if(html !=
null &&
"ISO-8859-1".equals(ElephantContext.getEncoding())) {
127 for(String entity : Entities_ISO88591) {
128 html = html.replaceAll(
"\\" + entity,
"\\" + StringEscapeUtils.unescapeHtml4(entity));
The documentation for this class was generated from the following file: