class Filters

internal  
 

Template filters. Uses UTF-8 only.

Properties

static deprecated $dateFormat
static internal $xhtml

Methods

static string
escapeHtml(mixed $s)

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

static string
escapeHtmlText(mixed $s)

Escapes string for use inside HTML text.

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

Escapes string for use inside HTML attribute value.

static string
escapeHtmlAttrConv(mixed $s)

Escapes HTML for use inside HTML attribute.

static string
escapeHtmlAttrUnquoted(string $s)

Escapes string for use inside HTML attribute name.

static string
escapeHtmlComment(string $s)

Escapes string for use inside HTML/XML comments.

static string
escapeXml(string $s)

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

static string
escapeXmlAttrUnquoted(string $s)

Escapes string for use inside XML attribute name.

static string
escapeCss(string $s)

Escapes string for use inside CSS template.

static string
escapeJs(mixed $s)

Escapes variables for use inside