class OutputFilter extends OutputFilter

OutputFilter

Methods

static  string
linkXHTMLSafe( string $input)

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

static  string
stringJSSafe( string $string)

This method processes a string and escapes it for use in JavaScript

static  string
stringURLSafe( string $string, string $language = '')

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
ampReplaceCallback( string $m)

Callback method for replacing & with & in a string

static  string
_ampReplaceCallback( string $m)

Callback method for replacing & with & in a string

Details

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

static string stringJSSafe( string $string)

This method processes a string and escapes it for use in JavaScript

Parameters

string $string String to process

Return Value

string Processed text

static string stringURLSafe( string $string, string $language = '')

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
string $language Language to transilterate to

Return Value

string Processed string

static string ampReplaceCallback( string $m)

Callback method for replacing & with & in a string

Parameters

string $m String to process

Return Value

string Replaced string

static string _ampReplaceCallback( string $m)

Callback method for replacing & with & in a string

Parameters

string $m String to process

Return Value

string Replaced string