API15

JFilterOutput: Difference between revisions

From Joomla! Documentation

Doxiki (talk | contribs)
New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JFilterOutput}} ===Defined ...
 
Doxiki (talk | contribs)
No edit summary
Line 27: Line 27:
|Cleans text of all formating and scripting code  
|Cleans text of all formating and scripting code  
|}
|}
===Importing===
===Importing===
<source lang="php">jimport( 'joomla.filter.filteroutput' );</source>
<source lang="php">jimport( 'joomla.filter.filteroutput' );</source>

Revision as of 17:36, 25 March 2010

[Edit Descripton] Template:Description:JFilterOutput

Defined in

libraries/joomla/filter/filteroutput.php

Methods

Method name Description
objectHTMLSafe Makes an object safe to display in forms
linkXHTMLSafe This method processes a string and replaces all instances of & with & in links only
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 lowercased.
ampReplace Replaces & with & for xhtml compliance
cleanText Cleans text of all formating and scripting code

Importing

jimport( 'joomla.filter.filteroutput' );

[Edit See Also] Template:SeeAlso:JFilterOutput

Examples

<CodeExamplesForm />