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 stripImages (string $string)
static string _ampReplaceCallback (string $m)
Methods
static method ampReplace (line 151)

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 method cleanText (line 188)

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 method 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 method 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 method stringURLSafe (line 86)

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 method stringURLUnicodeSlug (line 115)

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 method stripImages (line 212)

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 method _ampReplaceCallback (line 172)

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 Mon, 25 Jun 2012 13:58:25 -0500 by phpDocumentor 1.4.4