Escaper
final class Escaper
Context-aware escaping.
Constants
| Text |
|
| JavaScript |
|
| Css |
|
| ICal |
|
| 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
static callable|null
getConvertor(string $source, string $dest)
No description
Details
at line 80
__construct(string $contentType)
No description
at line 89
string
getContentType()
No description
at line 95
string
getState()
No description
at line 101
string
export()
No description
at line 107
void
enterContentType(string $type)
No description
at line 113
void
enterHtmlText(ElementNode $el)
No description
at line 133
void
enterHtmlTag(string $name)
No description
at line 140
void
enterHtmlRaw(string $subType)
No description
at line 147
void
enterHtmlAttribute(string|null $name = null)
No description
at line 163
void
enterHtmlBogusTag()
No description
at line 169
void
enterHtmlComment()
No description
at line 175
string
escape(string $str)
No description
at line 213
string
escapeMandatory(string $str)
No description
at line 235
string
escapeContent(string $str)
No description
at line 244
static callable|null
getConvertor(string $source, string $dest)
No description