EscaperInterface

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登录查看完整内容