Filters
class Filters
internal |
Escaping & sanitization filters.
Properties
static deprecated | $dateFormat |
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
escapeHtmlRawTextHtml($s)
Escapes HTML for usage in
static string
escapeHtmlQuotes($s)
Escapes only quotes.
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