|
||||||||||
| 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" <, >, ", ', and & 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 quotation mark characters "
and '. |
static java.lang.String |
escapeAmpersands(java.lang.String s,
boolean preserveExistingEntities)
Replaces the HTML "special character" & with its equivalent entity in HTML 4 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)
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 quotation mark characters "
and '.
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)
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 | |||||||||