JFilterOutput: Difference between revisions
From Joomla! Documentation
Bulk upload by Doxiki2 |
m preparing for archive only |
||
| (7 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
=={{JVer|11.1}} JFilterOutput== | |||
===Description=== | |||
{{ | |||
== | |||
=== | |||
===Methods=== | ===Methods=== | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
!Visibility | |||
!Method name | !Method name | ||
!Description | !Description | ||
|- | |- | ||
|[[JFilterOutput::_ampReplaceCallback | |public static | ||
|[[API17:JFilterOutput::_ampReplaceCallback|_ampReplaceCallback]] | |||
|Callback method for replacing & with & in a string. | |Callback method for replacing & with & in a string. | ||
|- | |- | ||
|[[JFilterOutput::ampReplace | |public static | ||
|[[API17:JFilterOutput::ampReplace|ampReplace]] | |||
|Replaces & with & for xhtml compliance. | |Replaces & with & for xhtml compliance. | ||
|- | |- | ||
|[[JFilterOutput::cleanText | |public static | ||
|[[API17:JFilterOutput::cleanText|cleanText]] | |||
|Cleans text of all formating and scripting code. | |Cleans text of all formating and scripting code. | ||
|- | |- | ||
|[[JFilterOutput::linkXHTMLSafe | |public static | ||
|[[API17:JFilterOutput::linkXHTMLSafe|linkXHTMLSafe]] | |||
|This method processes a string and replaces all instances of & with & in links only. | |This method processes a string and replaces all instances of & with & in links only. | ||
|- | |- | ||
|[[JFilterOutput::objectHTMLSafe | |public static | ||
|[[API17:JFilterOutput::objectHTMLSafe|objectHTMLSafe]] | |||
|Makes an object safe to display in forms. | |Makes an object safe to display in forms. | ||
|- | |- | ||
|[[JFilterOutput::stringURLSafe | |public static | ||
|[[API17:JFilterOutput::stringURLSafe|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. | |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. | ||
|- | |- | ||
|[[JFilterOutput::stringURLUnicodeSlug | |public static | ||
|[[API17:JFilterOutput::stringURLUnicodeSlug|stringURLUnicodeSlug]] | |||
|This method implements unicode slugs instead of transliteration. | |This method implements unicode slugs instead of transliteration. | ||
|- | |- | ||
|[[JFilterOutput::stripImages | |public static | ||
|[[API17:JFilterOutput::stripImages|stripImages]] | |||
|Strip img-tags from string. | |Strip img-tags from string. | ||
|- | |- | ||
|} | |} | ||
* '''Defined in''' libraries/joomla/filter/filteroutput.php | |||
===Importing=== | ===Importing=== | ||
<source lang="php">jimport( 'joomla.filter.filteroutput' );</source> | <source lang="php">jimport( 'joomla.filter.filteroutput' );</source> | ||
===See also=== | ===See also=== | ||
* [[ | * {{JVer|11.1}} '''JFilterOutput source code''' on [[jplatform:filter/filteroutput.php|BitBucket]] | ||
{{ | * {{JVer|11.1}} Subpackage [[API17:Subpackage Filter|Filter]] | ||
* [[API17:JFilterOutput|Other versions of JFilterOutput]] | |||
===Examples=== | ===User contributed notes=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=JFilterOutput | category=JFilterOutput | ||
namespace=CodeExample | |||
category=ClassExample | category=ClassExample | ||
include=* | include=* | ||
namespace=CodeExample | |||
format= ,,, | format= ,,, | ||
</dpl> | </dpl> | ||
<noinclude> | <noinclude>[[Category:Platform 11.1]][[Category:Archived pages API17]]</noinclude> | ||
Latest revision as of 03:02, 25 March 2017
JFilterOutput
Description
Methods
| Visibility | Method name | Description |
|---|---|---|
| public static | _ampReplaceCallback | Callback method for replacing & with & in a string. |
| public static | ampReplace | Replaces & with & for xhtml compliance. |
| public static | cleanText | Cleans text of all formating and scripting code. |
| public static | linkXHTMLSafe | This method processes a string and replaces all instances of & with & in links only. |
| public static | objectHTMLSafe | Makes an object safe to display in forms. |
| public static | 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. |
| public static | stringURLUnicodeSlug | This method implements unicode slugs instead of transliteration. |
| public static | stripImages | Strip img-tags from string. |
- Defined in libraries/joomla/filter/filteroutput.php
Importing
jimport( 'joomla.filter.filteroutput' );
See also
JFilterOutput source code on BitBucket
Subpackage Filter- Other versions of JFilterOutput
User contributed notes
Code Examples