[ Index ]

PHP Cross Reference of Joomla 4.2.2 documentation

title

Body

[close]

/libraries/vendor/joomla/filter/src/ -> OutputFilter.php (summary)

Part of the Joomla Framework Filter Package

Copyright: Copyright (C) 2005 - 2021 Open Source Matters, Inc. All rights reserved.
License: GNU General Public License version 2 or later; see LICENSE
File Size: 258 lines (7 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

OutputFilter:: (9 methods):
  objectHtmlSafe()
  linkXhtmlSafe()
  stringUrlSafe()
  stringUrlUnicodeSlug()
  ampReplace()
  cleanText()
  setLanguage()
  stripImages()
  stripIframes()


Class: OutputFilter  - X-Ref

OutputFilter is a class for processing an output string for "safe" display

objectHtmlSafe(&$mixed, $quoteStyle = \ENT_QUOTES, $excludeKeys = '')   X-Ref
Makes an object safe to display in forms.

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

param: object   $mixed        An object to be parsed
param: integer  $quoteStyle   The optional quote style for the htmlspecialchars function
param: mixed    $excludeKeys  An optional string single field name or array of field names not to be parsed (eg, for a textarea)
return: void

linkXhtmlSafe($input)   X-Ref
Makes a string safe for XHTML output by escaping ampersands in links.

param: string  $input  String to process
return: string  Processed string

stringUrlSafe($string, $language = '')   X-Ref
No description

stringUrlUnicodeSlug($string)   X-Ref
Generates a URL safe version of the specified string with unicode character replacement.

param: string  $string  String to process
return: string  Processed string

ampReplace($text)   X-Ref
Makes a string safe for XHTML output by escaping ampersands.

param: string  $text  Text to process
return: string  Processed string.

cleanText(&$text)   X-Ref
Cleans text of all formatting and scripting code.

param: string  $text  Text to clean
return: string  Cleaned text.

setLanguage(Language $language)   X-Ref
Set a Language instance for use

param: Language  $language  The Language instance to use.
return: void

stripImages($string)   X-Ref
Strips `<img>` tags from a string.

param: string  $string  Sting to be cleaned.
return: string  Cleaned string

stripIframes($string)   X-Ref
Strips `<iframe>` tags from a string.

param: string  $string  Sting to be cleaned.
return: string  Cleaned string



Generated: Wed Sep 7 05:41:13 2022 Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer