Class EscapeUrl

Summary

Fully Qualified Name: Laminas\View\Helper\EscapeUrl
Extends: AbstractHelper

Description

Helper for escaping values

Methods

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

Method Details

__invoke()

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.

getEncoding()

Get the encoding to use for escape operations

Returns: string

getEscaper()

Get instance of Escaper

Returns: null|\Escaper\Escaper

setEncoding()

Set the encoding to use for escape operations

Parameter Name Type Description
$encoding string

Returns: \AbstractHelper

setEscaper()

Set instance of Escaper

Parameter Name Type Description
$escaper \Escaper\Escaper

Returns: \AbstractHelper

Top