JOOMLA中国
  • Joomla中国首页
  • 社区
  • 教程
  • 应用市场
  • B计划
Joomla! Framework TM
  • Namespace
  • Class
  • Tree
  • Deprecated

Namespaces

  • Composer
    • Autoload
  • Joomla
    • Application
      • Cli
        • Output
          • Processor
      • Web
    • Data
    • DI
      • Exception
    • Event
    • Filter
    • Input
    • Ldap
    • Registry
      • Format
    • Session
      • Storage
    • String
    • Uri
    • Utilities
  • None
  • PasswordCompat
    • binary
  • PHP
  • Psr
    • Log
  • Symfony
    • Component
      • Yaml
        • Exception
    • Polyfill
      • Util

Classes

  • InputFilter
  • OutputFilter

Class OutputFilter

OutputFilter

Direct known subclasses

JFilterOutput

Namespace: Joomla\Filter
Since: 1.0
Located at vendor/joomla/filter/src/OutputFilter.php

Methods summary

public static
# objectHtmlSafe( object & $mixed, integer $quote_style = ENT_QUOTES, mixed $exclude_keys = '' )

Makes an object safe to display in forms

Makes an object safe to display in forms

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

Parameters

$mixed
object - &$mixed An object to be parsed
$quote_style
integer - $quote_style The optional quote style for the htmlspecialchars function
$exclude_keys
mixed - $exclude_keys An optional string single field name or array of field names not to be parsed (eg, for a textarea)

Since

1.0
public static string
# linkXhtmlSafe( string $input )

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

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

Parameters

$input
string - $input String to process

Returns

string - Processed string

Since

1.0
public 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.

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 String to process
$language
string - $language Language to transliterate to

Returns

string - Processed string

Since

1.0
public static string
# stringUrlUnicodeSlug( string $string )

This method implements unicode slugs instead of transliteration.

This method implements unicode slugs instead of transliteration.

Parameters

$string
string - $string String to process

Returns

string - Processed string

Since

1.0
public static string
# ampReplace( string $text )

Replaces & with & for XHTML compliance

Replaces & with & for XHTML compliance

Parameters

$text
string - $text Text to process

Returns

string - Processed string.

Since

1.0
public static string
# cleanText( string & $text )

Cleans text of all formatting and scripting code

Cleans text of all formatting and scripting code

Parameters

$text
string - &$text Text to clean

Returns

string - Cleaned text.

Since

1.0
public static string
# stripImages( string $string )

Strip img-tags from string

Strip img-tags from string

Parameters

$string
string - $string Sting to be cleaned.

Returns

string - Cleaned string

Since

1.0
public static string
# stripIframes( string $string )

Strip iframe-tags from string

Strip iframe-tags from string

Parameters

$string
string - $string Sting to be cleaned.

Returns

string - Cleaned string

Since

1.0

Magic methods summary

Joomla! Framework TM API documentation generated by ApiGen 2.8.0
Joomla!® and Joomla! Framework™ are trademarks of Open Source Matters, Inc. in the United States and other countries.