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
escapeXml($s)

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

static string
escapeXmlAttrUnquoted($s)

Escapes string for use inside XML attribute name.

static string
escapeCss($s)

Escapes string for use inside CSS template.

static string
escapeJs(mixed $s)

Escapes variables for use inside