references:joomla.legacy:1.5:moshtml-cleantextcleantext
Cleans text of all formating and scripting code SyntaxcleanText (mixed &$text)
ExamplesExample: 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 |



