JFilterOutput
JFilterOutput
package |
Joomla.Platform |
---|---|
subpackage |
Filter |
since |
11.1 |
Methods
_ampReplaceCallback
Callback method for replacing & with & in a string
_ampReplaceCallback(string $m) : string
since |
11.1 |
---|
Arguments
- $m
string
String to process
Response
string
Replaced string
ampReplace
Replaces & with & for XHTML compliance
ampReplace(string $text) : string
since |
11.1 |
---|---|
todo |
There must be a better way??? |
Arguments
- $text
string
Text to process
Response
string
Processed string.
cleanText
Cleans text of all formatting and scripting code
cleanText( &$text) : string
since |
11.1 |
---|
Arguments
- $text
Response
string
Cleaned text.
linkXHTMLSafe
This method processes a string and replaces all instances of & with & in links only.
linkXHTMLSafe(string $input) : string
since |
11.1 |
---|
Arguments
- $input
string
String to process
Response
string
Processed string
objectHTMLSafe
Makes an object safe to display in forms
objectHTMLSafe( &$mixed, integer $quote_style = ENT_QUOTES, mixed $exclude_keys = '') : void
Object parameters that are non-string, array, object or start with underscore will be converted
since |
11.1 |
---|
Arguments
- $mixed
- $quote_style
integer
The optional quote style for the htmlspecialchars function- $exclude_keys
mixed
An optional string single field name or array of field names not to be parsed (eg, for a textarea)
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
since |
11.1 |
---|
Arguments
- $string
string
String to process
Response
string
Processed string
stringURLUnicodeSlug
This method implements unicode slugs instead of transliteration.
stringURLUnicodeSlug(string $string) : string
since |
11.1 |
---|
Arguments
- $string
string
String to process
Response
string
Processed string
stripImages
Strip img-tags from string
stripImages(string $string) : string
since |
11.1 |
---|
Arguments
- $string
string
Sting to be cleaned.
Response
string
Cleaned string