Escaper
final class Escaper
Context-aware escaping.
Constants
| Text |
|
| JavaScript |
|
| Css |
|
| ICal |
|
| Url |
|
| HtmlText |
|
| HtmlComment |
|
| HtmlBogusTag |
|
| HtmlRawText |
|
| HtmlTag |
|
| HtmlAttribute |
|
| private Convertors |
|
Methods
__construct(string $contentType)
No description
string
getContentType()
No description
string
getState()
No description
string
export()
No description
void
enterContentType(string $type)
No description
void
void
enterHtmlTag(string $name)
No description
void
enterHtmlRaw(string $subType)
No description
void
enterHtmlAttribute(string|null $name = null)
No description
void
enterHtmlBogusTag()
No description
void
enterHtmlComment()
No description
string
escape(string $str)
No description
string
escapeMandatory(string $str)
No description
string
escapeContent(string $str)
No description
string
check(string $str)
No description
static callable|null
getConvertor(string $source, string $dest)
No description
Details
at line 85
__construct(string $contentType)
No description
at line 94
string
getContentType()
No description
at line 100
string
getState()
No description
at line 106
string
export()
No description
at line 112
void
enterContentType(string $type)
No description
at line 118
void
enterHtmlText(ElementNode $el)
No description
at line 145
void
enterHtmlTag(string $name)
No description
at line 152
void
enterHtmlRaw(string $subType)
No description
at line 159
void
enterHtmlAttribute(string|null $name = null)
No description
at line 179
void
enterHtmlBogusTag()
No description
at line 185
void
enterHtmlComment()
No description
at line 191
string
escape(string $str)
No description
at line 230
string
escapeMandatory(string $str)
No description
at line 252
string
escapeContent(string $str)
No description
at line 261
string
check(string $str)
No description
at line 270
static callable|null
getConvertor(string $source, string $dest)
No description