Interface Phalcon\EscaperInterface

Phalcon\EscaperInterface initializer

Methods

abstract public setEncoding (string $encoding)

Sets the encoding to be used by the escaper

abstract public string getEncoding ()

Returns the internal encoding used by the escaper

abstract public setHtmlQuoteType (int $quoteType)

Sets the HTML quoting type for htmlspecialchars

abstract public string escapeHtml (string $text)

Escapes a HTML string

abstract public string escapeHtmlAttr (string $text)

Escapes a HTML attribute string

abstract public string escapeCss (string $css)

Escape CSS strings by replacing non-alphanumeric chars by their hexadecimal representation

abstract public string escapeJs (string $js)

Escape Javascript strings by replacing non-alphanumeric chars by their hexadecimal representation

abstract public string escapeUrl (string $url)

Escapes a URL. Internally uses rawurlencode

© 2011–2016 Phalcon Framework Team
Licensed under the Creative Commons Attribution License 3.0.
https://docs.phalconphp.com/en/2.0.0/api/Phalcon_EscaperInterface.html