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, Position|null $position = null)
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 140
void
enterHtmlTag(string $name)
No description
at line 147
void
enterHtmlRaw(string $subType)
No description
at line 154
void
enterHtmlAttribute(string|null $name = null)
No description
at line 170
void
enterHtmlBogusTag()
No description
at line 176
void
enterHtmlComment()
No description
at line 182
string
escape(string $str)
No description
at line 220
string
escapeMandatory(string $str, Position|null $position = null)
No description
at line 242
string
escapeContent(string $str)
No description
at line 251
static callable|null
getConvertor(string $source, string $dest)
No description