Actions

API15

Difference between revisions of "JFilterOutput"

From Joomla! Documentation

(New page: <span class="editsection" style="font-size:76%;"> <nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki> </span> {{Description:JFilterOutput}} ===Defined ...)
 
(replaced the ampersand in ampersand-amp; so that the correct replacement for the methods is displayed)
 
(One intermediate revision by one user not shown)
Line 16: Line 16:
 
|-
 
|-
 
|[[API15:JFilterOutput/linkXHTMLSafe|linkXHTMLSafe]]
 
|[[API15:JFilterOutput/linkXHTMLSafe|linkXHTMLSafe]]
|This method processes a string and replaces all instances of &amp; with &amp; in links only
+
|This method processes a string and replaces all instances of &amp; with &amp;amp; in links only
 
|-
 
|-
 
|[[API15:JFilterOutput/stringURLSafe|stringURLSafe]]
 
|[[API15:JFilterOutput/stringURLSafe|stringURLSafe]]
Line 22: Line 22:
 
|-
 
|-
 
|[[API15:JFilterOutput/ampReplace|ampReplace]]
 
|[[API15:JFilterOutput/ampReplace|ampReplace]]
|Replaces &amp; with &amp; for xhtml compliance
+
|Replaces &amp; with &amp;amp; for xhtml compliance
 
|-
 
|-
 
|[[API15:JFilterOutput/cleanText|cleanText]]
 
|[[API15:JFilterOutput/cleanText|cleanText]]
 
|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>

Latest revision as of 10:55, 17 September 2010

Replacement filing cabinet.png
This Namespace has been archived - Please Do Not Edit or Create Pages in this namespace. Pages contain information for a Joomla! version which is no longer supported. It exists only as a historical reference, will not be improved and its content may be incomplete.

[Edit Descripton] Description:JFilterOutput

Contents

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 &amp; 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 &amp; for xhtml compliance
cleanText Cleans text of all formating and scripting code

Importing

jimport( 'joomla.filter.filteroutput' );

[Edit See Also] SeeAlso:JFilterOutput

Examples

<CodeExamplesForm />