JFilterOutput: Difference between revisions
From Joomla! Documentation
New page: <span class="editsection" style="font-size:76%;">
<nowiki>[</nowiki>Edit Descripton<nowiki>]</nowiki>
</span>
{{Description:JFilterOutput}}
===Defined ... |
m preparing for archive only |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
===Defined in=== | ===Defined in=== | ||
libraries/joomla/filter/filteroutput.php | libraries/joomla/filter/filteroutput.php | ||
| Line 16: | Line 11: | ||
|- | |- | ||
|[[API16:JFilterOutput/linkXHTMLSafe|linkXHTMLSafe]] | |[[API16:JFilterOutput/linkXHTMLSafe|linkXHTMLSafe]] | ||
|This method processes a string and replaces all instances of & | |This method processes a string and replaces all instances of & with & in links only | ||
|- | |- | ||
|[[API16:JFilterOutput/stringURLSafe|stringURLSafe]] | |[[API16:JFilterOutput/stringURLSafe|stringURLSafe]] | ||
| Line 25: | Line 20: | ||
|- | |- | ||
|[[API16:JFilterOutput/ampReplace|ampReplace]] | |[[API16:JFilterOutput/ampReplace|ampReplace]] | ||
|Replaces & | |Replaces & with & for xhtml compliance | ||
|- | |- | ||
|[[API16:JFilterOutput/cleanText|cleanText]] | |[[API16:JFilterOutput/cleanText|cleanText]] | ||
| Line 34: | Line 29: | ||
<source lang="php">jimport( 'joomla.filter.filteroutput' );</source> | <source lang="php">jimport( 'joomla.filter.filteroutput' );</source> | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JFilterOutput | category=JFilterOutput | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
Latest revision as of 01:40, 25 March 2017
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. |
| stringURLUnicodeSlug | This method implements unicode slugs instead of transliteration. |
| ampReplace | Replaces & with & for xhtml compliance |
| cleanText | Cleans text of all formating and scripting code |
Importing
jimport( 'joomla.filter.filteroutput' );
Examples
Code Examples