final |
---|
Context-aware escaping.
Methods | ||
---|---|---|
public
|
__construct(string $contentType)
|
# |
public
|
getContentType(): string
|
# |
public
|
getState(): string
|
# |
public
|
export(): string
|
# |
public
|
enterContentType(string $type): void
|
# |
public
|
enterHtmlText(ElementNode $el): void
|
# |
public
|
enterHtmlTag(string $name): void
|
# |
public
|
enterHtmlRaw(string $subType): void
|
# |
public
|
enterHtmlAttribute(?string $name = null): void
|
# |
public
|
enterHtmlBogusTag(): void
|
# |
public
|
enterHtmlComment(): void
|
# |
public
|
escape(string $str): string
|
# |
public
|
escapeMandatory(string $str): string
|
# |
public
|
check(string $str): string
|
# |
public
static
|
getConvertor(string $source, string $dest): ?callable
|
# |
Constants | |||
---|---|---|---|
public
|
Text = 'text'
|
# | |
public
|
JavaScript = 'js'
|
# | |
public
|
Css = 'css'
|
# | |
public
|
ICal = 'ical'
|
# | |
public
|
Url = 'url'
|
# | |
public
|
HtmlText = 'html'
|
# | |
public
|
HtmlComment = 'html/comment'
|
# | |
public
|
HtmlBogusTag = 'html/bogus'
|
# | |
public
|
HtmlRawText = 'html/raw'
|
# | |
public
|
HtmlTag = 'html/tag'
|
# | |
public
|
HtmlAttribute = 'html/attr'
|
# |