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 78
__construct(string $contentType)
No description
at line 87
string
getContentType()
No description
at line 93
string
getState()
No description
at line 99
string
export()
No description
at line 105
void
enterContentType(string $type)
No description
at line 111
void
enterHtmlText(ElementNode $el)
No description
at line 131
void
enterHtmlTag(string $name)
No description
at line 138
void
enterHtmlRaw(string $subType)
No description
at line 145
void
enterHtmlAttribute(string|null $name = null)
No description
at line 161
void
enterHtmlBogusTag()
No description
at line 167
void
enterHtmlComment()
No description
at line 173
string
escape(string $str)
No description
at line 211
string
escapeMandatory(string $str)
No description
at line 233
string
escapeContent(string $str)
No description
at line 242
static callable|null
getConvertor(string $source, string $dest)
No description