473. Class

473.1. Zend\View\Helper\Escaper\AbstractHelper

Helper for escaping values

473.1.1. Methods

473.1.1.1. setEscaper

setEscaper()

@var string Encoding

473.1.1.2. getEscaper

getEscaper()

473.1.1.3. setEncoding

setEncoding()

Set the encoding to use for escape operations

Parameters:string
Throws ExceptionInvalidArgumentException:
 
Return type:AbstractHelper

473.1.1.4. getEncoding

getEncoding()

Get the encoding to use for escape operations

Return type:string

473.1.1.5. __invoke

__invoke()

Invoke this helper: escape a value

Parameters:
  • mixed
  • int – Expects one of the recursion constants; used to decide whether or not to recurse the given value when escaping
Return type:

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.

Throws :

ExceptionInvalidArgumentException

473.1.1.6. escape

escape()

Escape a value for current escaping strategy

Parameters:string
Return type:string

473.1.2. Constants

473.1.2.1. RECURSE_NONE

473.1.2.2. RECURSE_ARRAY

473.1.2.3. RECURSE_OBJECT