JFilterOutput

JFilterOutput

package

Joomla.Platform

subpackage

Filter

since

11.1

Methods

_ampReplaceCallback

Callback method for replacing & with & in a string

_ampReplaceCallback(string $m) : string
static
since

11.1

Arguments

$m

stringString to process

Response

stringReplaced string

ampReplace

Replaces & with & for XHTML compliance

ampReplace(string $text) : string
static
since

11.1

todo

There must be a better way???

Arguments

$text

stringText to process

Response

stringProcessed string.

cleanText

Cleans text of all formatting and scripting code

cleanText( &$text) : string
static
since

11.1

Arguments

$text

Response

stringCleaned text.

linkXHTMLSafe

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

linkXHTMLSafe(string $input) : string
static
since

11.1

Arguments

$input

stringString to process

Response

stringProcessed string

objectHTMLSafe

Makes an object safe to display in forms

objectHTMLSafe( &$mixed, integer $quote_style = ENT_QUOTES, mixed $exclude_keys = '') : void
static

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

since

11.1

Arguments

$mixed

$quote_style

integerThe optional quote style for the htmlspecialchars function

$exclude_keys

mixedAn optional string single field name or array of field names not to be parsed (eg, for a textarea)

stringURLSafe

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.

stringURLSafe(string $string) : string
static
since

11.1

Arguments

$string

stringString to process

Response

stringProcessed string

stringURLUnicodeSlug

This method implements unicode slugs instead of transliteration.

stringURLUnicodeSlug(string $string) : string
static
since

11.1

Arguments

$string

stringString to process

Response

stringProcessed string

stripImages

Strip img-tags from string

stripImages(string $string) : string
static
since

11.1

Arguments

$string

stringSting to be cleaned.

Response

stringCleaned string