OutputFilter is a class for processing an output string for "safe" display
- Depuis
- 1.0
◆ ampReplace()
static ampReplace |
( |
|
$text | ) |
|
|
static |
Makes a string safe for XHTML output by escaping ampersands.
- Paramètres
-
string | $text | Text to process |
- Renvoie
- string Processed string.
- Depuis
- 1.0
Références $text.
Référencé par OutputFilterWrapper\ampReplace().
◆ cleanText()
static cleanText |
( |
& |
$text | ) |
|
|
static |
◆ linkXhtmlSafe()
static linkXhtmlSafe |
( |
|
$input | ) |
|
|
static |
Makes a string safe for XHTML output by escaping ampersands in links.
- Paramètres
-
- Renvoie
- string Processed string
- Depuis
- 1.0
Références $input.
◆ objectHtmlSafe()
static objectHtmlSafe |
( |
& |
$mixed, |
|
|
|
$quoteStyle = \ENT_QUOTES , |
|
|
|
$excludeKeys = '' |
|
) |
| |
|
static |
Makes an object safe to display in forms.
Object parameters that are non-string, array, object or start with underscore will be converted
- Paramètres
-
object | $mixed | An object to be parsed |
integer | $quoteStyle | The optional quote style for the htmlspecialchars function |
mixed | $excludeKeys | An optional string single field name or array of field names not to be parsed (eg, for a textarea) |
- Renvoie
- void
- Depuis
- 1.0
Références htmlspecialchars, et null.
◆ stringUrlSafe()
static stringUrlSafe |
( |
|
$string, |
|
|
|
$language = '' |
|
) |
| |
|
static |
Generates a URL safe version of the specified string with language transliteration.
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 lowercased.
- Paramètres
-
string | $string | String to process |
string | $language | Language to transliterate to |
- Renvoie
- string Processed string
- Depuis
- 1.0
Références $lang, et $language.
◆ stringUrlUnicodeSlug()
static stringUrlUnicodeSlug |
( |
|
$string | ) |
|
|
static |
Generates a URL safe version of the specified string with unicode character replacement.
- Paramètres
-
string | $string | String to process |
- Renvoie
- string Processed string
- Depuis
- 1.0
◆ stripIframes()
static stripIframes |
( |
|
$string | ) |
|
|
static |
◆ stripImages()
static stripImages |
( |
|
$string | ) |
|
|
static |
Strips <img>
tags from a string.
- Paramètres
-
string | $string | Sting to be cleaned. |
- Renvoie
- string Cleaned string
- Depuis
- 1.0
Référencé par OutputFilterWrapper\stripImages().
La documentation de cette classe a été générée à partir du fichier suivant :