class JFilterOutput


Located at : UKNOWVA_ROOT/libraries/joomla/filter/filteroutput.php

JFilterOutput

Methods

static 
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)

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 lowercased.

static string
stringURLUnicodeSlug($string)

This method implements unicode slugs instead of transliteration.

static string
ampReplace(string $text)

Replaces & with & for XHTML compliance

static string
_ampReplaceCallback(string $m)

Callback method for replacing & with & in a string

static string
cleanText(string $text)

Cleans text of all formating and scripting code

static string
stripImages(string $string)

Strip img-tags from string

Details

at line 33
static 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)

at line 62
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 77
static string stringURLSafe($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 lowercased.

Parameters

$string

Return Value

string Processed string

at line 105
static string stringURLUnicodeSlug($string)

This method implements unicode slugs instead of transliteration.

Parameters

$string

Return Value

string Processed string

at line 142
static string ampReplace(string $text)

Replaces & with & for XHTML compliance

Parameters

string $text Text to process

Return Value

string Processed string.

at line 162
static string _ampReplaceCallback(string $m)

Callback method for replacing & with & in a string

Parameters

string $m String to process

Return Value

string Replaced string

at line 177
static string cleanText(string $text)

Cleans text of all formating and scripting code

Parameters

string $text &$text Text to clean

Return Value

string Cleaned text.

at line 200
static string stripImages(string $string)

Strip img-tags from string

Parameters

string $string Sting to be cleaned.

Return Value

string Cleaned string