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, 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 81
__construct(string $contentType)
No description
at line 90
string
getContentType()
No description
at line 96
string
getState()
No description
at line 102
string
export()
No description
at line 108
void
enterContentType(string $type)
No description
at line 114
void
enterHtmlText(ElementNode $el)
No description
at line 134
void
enterHtmlTag(string $name)
No description
at line 141
void
enterHtmlRaw(string $subType)
No description
at line 148
void
enterHtmlAttribute(string|null $name = null)
No description
at line 164
void
enterHtmlBogusTag()
No description
at line 170
void
enterHtmlComment()
No description
at line 176
string
escape(string $str)
No description
at line 214
string
escapeMandatory(string $str, Position|null $position = null)
No description
at line 236
string
escapeContent(string $str)
No description
at line 245
static callable|null
getConvertor(string $source, string $dest)
No description