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 ApplicationModel\save().
◆ cleanText()
static cleanText |
( |
& |
$text | ) |
|
|
static |
Cleans text of all formatting and scripting code.
- Paramètres
-
- Renvoie
- string Cleaned text.
- Depuis
- 1.0
Références $text, et ENT_COMPAT.
◆ 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 null.
◆ setLanguage()
static setLanguage |
( |
Language |
$language | ) |
|
|
static |
◆ 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 $language, OutputFilter\$language, et StringHelper\strtolower().
◆ stringUrlUnicodeSlug()
static stringUrlUnicodeSlug |
( |
|
$string | ) |
|
|
static |
◆ stripIframes()
static stripIframes |
( |
|
$string | ) |
|
|
static |
Strips <iframe>
tags from a string.
- Paramètres
-
string | $string | Sting to be cleaned. |
- Renvoie
- string Cleaned string
- Depuis
- 1.0
◆ 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
◆ $language
La documentation de cette classe a été générée à partir du fichier suivant :