|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.atlassian.renderer.v2.components.HtmlEscaper
public final class HtmlEscaper
| Method Summary | |
|---|---|
static java.lang.String |
escapeAll(java.lang.String s,
boolean preserveExistingEntities)
Replaces the HTML special characters less-than ( <), greater-than (>),
double-quote ("), single-quote/apostrophe ('), and ampersand
(&) with their equivalent entities in HTML 4 and returns the result. |
static java.lang.String |
escapeAllExceptQuotes(java.lang.String s,
boolean preserveExistingEntities)
Does the same as escapeAll(String,boolean), except doesn't replace the ASCII quotation mark
characters double-quote (") and single-quote/apostrophe ('). |
static java.lang.String |
escapeAmpersands(java.lang.String s,
boolean preserveExistingEntities)
Replaces ampersand ( &) characters with the equivalent HTML entity
(&) and returns the result. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static java.lang.String escapeAll(java.lang.String s,
boolean preserveExistingEntities)
<), greater-than (>),
double-quote ("), single-quote/apostrophe ('), and ampersand
(&) with their equivalent entities in HTML 4 and returns the result. Also
maps the Microsoft Windows-1252 "smart quotes" characters (145-148) with their equivalent
HTML entities.
s - the String to escapepreserveExistingEntities - if true, will avoid escaping the ampersand in an existing
entity like <. If false, the method will
do a normal escaping by replace all matched characters.
public static java.lang.String escapeAllExceptQuotes(java.lang.String s,
boolean preserveExistingEntities)
escapeAll(String,boolean), except doesn't replace the ASCII quotation mark
characters double-quote (") and single-quote/apostrophe (').
s - the String to escapepreserveExistingEntities - if true, will avoid escaping the ampersand in an existing
entity like <. If false, the method will
do a normal escaping by replace all matched characters.
public static java.lang.String escapeAmpersands(java.lang.String s,
boolean preserveExistingEntities)
&) characters with the equivalent HTML entity
(&) and returns the result.
s - the String to escapepreserveExistingEntities - if true, will avoid escaping the ampersand in an existing
entity like <. If false, the method will
do a normal escaping by replace all matched characters.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||