OutputFilter
Extends \Joomla\Filter\OutputFilterOutputFilter
since |
1.7.0 |
---|
Methods
_ampReplaceCallback
Callback method for replacing & with & in a string
_ampReplaceCallback(string $m) : string
since |
1.7.0 |
---|---|
deprecated |
4.0 Use OutputFilter::ampReplaceCallback() instead |
Arguments
- $m
string
String to process
Response
string
Replaced string
ampReplace
Makes a string safe for XHTML output by escaping ampersands.
ampReplace(string $text) : string
since |
1.0 |
---|
Arguments
- $text
string
Text to process
Response
string
Processed string.
ampReplaceCallback
Callback method for replacing & with & in a string
ampReplaceCallback(string $m) : string
since |
3.5 |
---|
Arguments
- $m
string
String to process
Response
string
Replaced string
cleanText
Cleans text of all formatting and scripting code.
cleanText(string &$text) : string
since |
1.0 |
---|
Arguments
- $text
string
Text to clean
Response
string
Cleaned text.
linkXHTMLSafe
This method processes a string and replaces all instances of & with & in links only.
linkXHTMLSafe(string $input) : string
since |
1.7.0 |
---|
Arguments
- $input
string
String to process
Response
string
Processed string
linkXhtmlSafe
Makes a string safe for XHTML output by escaping ampersands in links.
linkXhtmlSafe(string $input) : string
since |
1.0 |
---|
Arguments
- $input
string
String to process
Response
string
Processed string
objectHtmlSafe
Makes an object safe to display in forms.
objectHtmlSafe(object &$mixed, integer $quoteStyle = \ENT_QUOTES, mixed $excludeKeys = '') : void
Object parameters that are non-string, array, object or start with underscore will be converted
since |
1.0 |
---|
Arguments
- $mixed
object
An object to be parsed- $quoteStyle
integer
The optional quote style for the htmlspecialchars function- $excludeKeys
mixed
An optional string single field name or array of field names not to be parsed (eg, for a textarea)
stringJSSafe
This method processes a string and escapes it for use in JavaScript
stringJSSafe(string $string) : string
Arguments
- $string
string
String to process
Response
string
Processed text
stringURLSafe
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.
stringURLSafe(string $string, string $language = '') : string
since |
1.7.0 |
---|
Arguments
- $string
string
String to process- $language
string
Language to transliterate to
Response
string
Processed string
stringUrlSafe
Generates a URL safe version of the specified string with language transliteration.
stringUrlSafe(string $string, string $language = '') : string
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.
since |
1.0 |
---|
Arguments
- $string
string
String to process- $language
string
Language to transliterate to
Response
string
Processed string
stringUrlUnicodeSlug
Generates a URL safe version of the specified string with unicode character replacement.
stringUrlUnicodeSlug(string $string) : string
since |
1.0 |
---|
Arguments
- $string
string
String to process
Response
string
Processed string
stripIframes
Strips <iframe>
tags from a string.
stripIframes(string $string) : string
since |
1.0 |
---|
Arguments
- $string
string
Sting to be cleaned.
Response
string
Cleaned string
stripImages
Strips <img>
tags from a string.
stripImages(string $string) : string
since |
1.0 |
---|
Arguments
- $string
string
Sting to be cleaned.
Response
string
Cleaned string