| Fully Qualified Name: | Laminas\View\Helper\EscapeHtml |
| Extends: | AbstractHelper |
Helper for escaping values
| Name | Description | Defined By |
|---|---|---|
| __invoke() | Invoke this helper: escape a value | AbstractHelper |
| getEncoding() | Get the encoding to use for escape operations | AbstractHelper |
| getEscaper() | Get instance of Escaper | AbstractHelper |
| setEncoding() | Set the encoding to use for escape operations | AbstractHelper |
| setEscaper() | Set instance of Escaper | AbstractHelper |
Invoke this helper: escape a value
| Parameter Name | Type | Description |
|---|---|---|
| $value | mixed | |
| $recurse | int | Expects |
Returns: mixed Given a scalar, a scalar value is returned. Given an object, with the $recurse flag not allowing object recursion, returns a string. Otherwise, returns an array.
Get the encoding to use for escape operations
Returns: string
Get instance of Escaper
Returns: null|\Escaper\Escaper
Set the encoding to use for escape operations
| Parameter Name | Type | Description |
|---|---|---|
| $encoding | string |
Returns: \AbstractHelper
Set instance of Escaper
| Parameter Name | Type | Description |
|---|---|---|
| $escaper | \Escaper\Escaper |
Returns: \AbstractHelper