PHP
class PHP implements RendererInterface
Plain PHP view renderer.
Traits
Properties
protected array | $htmlNamedEntityMap | HTML entity map. | from EscaperTrait |
Methods
Returns a string that has been escaped for a HTML body context.
Returns a string that has been escaped for a URI or parameter context.
Escapes characters for use in a HTML attribute context.
Returns a string that has been escaped for a HTML attribute context.
Returns a string that has been escaped for a CSS context.
Escapes characters for use in a Javascript context.
Returns a string that has been escaped for a Javascript context.
Returns the rendered view.
Details
in EscaperTrait at line 53
string
escapeHTML(string|null $string, string $charset, bool $doubleEncode = true)
Returns a string that has been escaped for a HTML body context.
in EscaperTrait at line 64
string
escapeURL(string|null $string)
Returns a string that has been escaped for a URI or parameter context.
in EscaperTrait at line 77
protected string
attributeEscaper(array $matches)
Escapes characters for use in a HTML attribute context.
(This method contains code from the SecurityMultiTool library).
in EscaperTrait at line 126
string
escapeAttribute(string|null $string, string $charset)
Returns a string that has been escaped for a HTML attribute context.
in EscaperTrait at line 151
protected string
cssEscaper(array $matches)
Escapes characters for use in a CSS context.
(This method contains code from the SecurityMultiTool library).
in EscaperTrait at line 176
string
escapeCSS(string|null $string, string $charset)
Returns a string that has been escaped for a CSS context.
in EscaperTrait at line 206
protected string
javascriptEscaper(array $matches)
Escapes characters for use in a Javascript context.
(This method contains code from the SecurityMultiTool library).
in EscaperTrait at line 227
string
escapeJavascript(string|null $string, string $charset)
Returns a string that has been escaped for a Javascript context.
at line 28
string
render(string $__view__, array $__variables__)
Returns the rendered view.