Class JFilterOutput

Description

JFilterOutput

  • since: 11.1

Located in /libraries/joomla/filter/output.php (line 19)


	
			
Method Summary
 static string ampReplace (string $text)
 static string cleanText (string &$text)
 static string linkXHTMLSafe (string $input)
 static void objectHTMLSafe (object &$mixed, [integer $quote_style = ENT_QUOTES], [mixed $exclude_keys = ''])
 static string stringURLSafe (string $string)
 static string stringURLUnicodeSlug (string $string)
 static string stripIframes (string $string)
 static string stripImages (string $string)
 static string _ampReplaceCallback (string $m)
Methods
static ampReplace (line 152)

Replaces & with & for XHTML compliance

  • return: Processed string.
  • todo: There must be a better way???
  • since: 11.1
  • access: public
static string ampReplace (string $text)
  • string $text: Text to process
static cleanText (line 189)

Cleans text of all formatting and scripting code

  • return: Cleaned text.
  • since: 11.1
  • access: public
static string cleanText (string &$text)
  • string &$text: Text to clean
static linkXHTMLSafe (line 70)

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

  • return: Processed string
  • since: 11.1
  • access: public
static string linkXHTMLSafe (string $input)
  • string $input: String to process
static objectHTMLSafe (line 36)

Makes an object safe to display in forms

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

  • since: 11.1
  • access: public
static void objectHTMLSafe (object &$mixed, [integer $quote_style = ENT_QUOTES], [mixed $exclude_keys = ''])
  • object &$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)
static stringURLSafe (line 87)

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.

  • return: Processed string
  • since: 11.1
  • access: public
static string stringURLSafe (string $string)
  • string $string: String to process
static stringURLUnicodeSlug (line 116)

This method implements unicode slugs instead of transliteration.

  • return: Processed string
  • since: 11.1
  • access: public
static string stringURLUnicodeSlug (string $string)
  • string $string: String to process
static stripIframes (line 227)

Strip iframe-tags from string

  • return: Cleaned string
  • since: 12.2
  • access: public
static string stripIframes (string $string)
  • string $string: Sting to be cleaned.
static stripImages (line 213)

Strip img-tags from string

  • return: Cleaned string
  • since: 11.1
  • access: public
static string stripImages (string $string)
  • string $string: Sting to be cleaned.
static _ampReplaceCallback (line 173)

Callback method for replacing & with & in a string

  • return: Replaced string
  • since: 11.1
  • access: public
static string _ampReplaceCallback (string $m)
  • string $m: String to process

Documentation generated on Tue, 19 Nov 2013 15:09:54 +0100 by phpDocumentor 1.4.3