class OutputFilter (View source)

Windwalker Output Filter

Methods

static object
objectHTMLSafe(object $mixed, integer $quote_style = ENT_QUOTES, mixed $exclude_keys = '')

Makes an object safe to display in forms

static string
linkXHTMLSafe(string $input)

This method processes a string and replaces all instances of & with & in links only.

static string
stringURLSafe(string $string)

This method processes a string and replaces all accented UTF-8 characters by unaccented ASCII-7 "equivalents", whitespaces are replaced by hyphens and the string is lowercase.

static string
stringURLUnicodeSlug(string $string)

This method implements unicode slugs instead of transliteration.

static string
ampReplace(string $text)

Replaces & with & for XHTML compliance

static string
cleanText(string $text)

Cleans text of all formatting and scripting code

static string
stripImages(string $string)

Strip img-tags from string

static string
stripIframes(string $string)

Strip iframe-tags from string

static mixed
stripScript(string $string)

stripScript

static mixed
stripStyle(string $string)

stripStyle

Details

at line line 33
static object objectHTMLSafe(object $mixed, integer $quote_style = ENT_QUOTES, mixed $exclude_keys = '')

Makes an object safe to display in forms

Object parameters that are non-string, array, object or start with underscore will be converted

Parameters

object $mixed &$mixed An object to be parsed
integer $quote_style The optional quote style for the htmlspecialchars function
mixed $exclude_keys An optional string single field name or array of field names not to be parsed (eg, for a textarea)

Return Value

object

at line line 67
static string linkXHTMLSafe(string $input)

This method processes a string and replaces all instances of & with & in links only.

Parameters

string $input String to process

Return Value

string Processed string

at line line 93
static string stringURLSafe(string $string)

This method processes a string and replaces all accented UTF-8 characters by unaccented ASCII-7 "equivalents", whitespaces are replaced by hyphens and the string is lowercase.

Parameters

string $string String to process

Return Value

string Processed string

at line line 121
static string stringURLUnicodeSlug(string $string)

This method implements unicode slugs instead of transliteration.

Parameters

string $string String to process

Return Value

string Processed string

at line line 153
static string ampReplace(string $text)

Replaces & with & for XHTML compliance

Parameters

string $text Text to process

Return Value

string Processed string.

at line line 172
static string cleanText(string $text)

Cleans text of all formatting and scripting code

Parameters

string $text &$text Text to clean

Return Value

string Cleaned text.

at line line 194
static string stripImages(string $string)

Strip img-tags from string

Parameters

string $string Sting to be cleaned.

Return Value

string Cleaned string

at line line 206
static string stripIframes(string $string)

Strip iframe-tags from string

Parameters

string $string Sting to be cleaned.

Return Value

string Cleaned string

at line line 218
static mixed stripScript(string $string)

stripScript

Parameters

string $string

Return Value

mixed

at line line 230
static mixed stripStyle(string $string)

stripStyle

Parameters

string $string

Return Value

mixed