class Filters

internal  
 

Escaping & sanitization filters.

Properties

static deprecated $dateFormat
static internal $xml

Methods

static string
escapeHtml($s)

Escapes string for use everywhere inside HTML (except for comments).

static string
escapeHtmlText($s)

Escapes string for use inside HTML text.

static string
escapeHtmlAttr($s, bool $double = true)

Escapes string for use inside HTML attribute value.

static string
escapeHtmlTag($s)

Escapes string for use inside HTML tag.

static string
escapeHtmlComment($s)

Escapes string for use inside HTML/XML comments.

static string
escapeHtmlChar($s, string $char)

Escapes a certain special character.

static string
escapeXml($s)

Escapes string for use everywhere inside XML (except for comments and tags).

static string
escapeXmlTag($s)

Escapes string for use inside XML tag.

static string
escapeCss($s)

Escapes string for use inside CSS template.

static string
escapeJs(mixed $s)

Escapes variables for use inside