Support Joomla!

references:joomla.legacy:1.5:moshtml-cleantext

Table of Contents

cleantext

API Package Class phpDocumentor Last reviewed Doc status
Joomla.Legacy 1.5 mosHTML mosHTML->cleantext never Work in progress

Cleans text of all formating and scripting code

Syntax

cleanText (mixed &$text)

$text mixed is an object of type mosParameters. If $params→get( ‘back_button’ ) is the text value to be cleaned

Examples

Example: This example uses the global configuration ‘back_button’ setting.

Example

$text = "Hello there";
$cleaned_text = mosHTML::cleanText($text);
echo $text . " has become " . $cleaned_text;

Would produce: Hello there has become Hellothere

 
references/joomla.legacy/1.5/moshtml-cleantext.txt (684 views) · Last modified: 2007/09/22 02:45