Zend\View\Helper\EscapeHtml
Helper for escaping values
Synopsis
class EscapeHtml
extends AbstractHelper
{
- // Inherited constants from AbstractHelper
- const RECURSE_NONE = 0x00;
- const RECURSE_ARRAY = 0x01;
- const RECURSE_OBJECT = 0x02;
- // Inherited members from AbstractHelper
- protected RendererInterface $view;
- // methods
- protected string escape()
- // Inherited methods from AbstractHelper
- public mixed __invoke()
- protected abstract string escape()
- public AbstractHelper setEncoding()
- public string getEncoding()
- public AbstractHelper setEscaper()
- public Escaper getEscaper()
- // Inherited methods from AbstractHelper
- public AbstractHelper setView()
- public null|Renderer getView()
Hierarchy
Constants
Name | Value |
---|---|
RECURSE_NONE | 0x00 |
RECURSE_ARRAY | 0x01 |
RECURSE_OBJECT | 0x02 |
Members
protected
- $encoding — string
- $escaper — Zend\View\Helper\Escaper\Escaper\Escaper
- $view
—
Zend\View\Renderer\RendererInterface
View object instance
Methods
protected
- escape() — Escape a value for current escaping strategy
Inherited from Zend\View\Helper\Escaper\AbstractHelper
protected
- escape() — Escape a value for current escaping strategy
public
- __invoke() — Invoke this helper: escape a value
- getEncoding() — Get the encoding to use for escape operations
- getEscaper() — Get instance of Escaper
- setEncoding() — Set the encoding to use for escape operations
- setEscaper() — Set instance of Escaper