---- &stripOutput user function (optional)
to transform on fly the result output
by default: defaultStripOutput
StripOutput user function should be define in the config file as follow :
// string functionName(string $text)
// functionName : name of stripOutput function passed as &stripOutput parameter
// $text : string php variable name as results
// return the filtered results
/*
function myStripOutput($text){
Any Php code which filter the results
The following internal functions could be called:
$text = stripTags($text); // strip all the MODx tags
$text = stripJscript($text); // strip jscript
$text = stripLineBreaking($text); // replace line breaking tags with whitespace
$text = stripHtml($text); // strip all the html tags
You could also developp you own filter based on regular expressions.
See http://fr.php.net/manual/en/intro.pcre.php
return $text;
}
*/
By default : defaultStripOutput function will be used if &stripOutput parameter
is not set or if the function is not defined :
function defaultStripOutput($text){
// replace line breaking tags with whitespace
$text = stripLineBreaking($text);
// strip modx sensitive tags
$text = stripTags($text);
// strip Jscript
$text = stripJscripts($text);
// strip html tags. Tags should be correctly ended
$text = stripHTML($text);
return $text;
}
$modRegExArray[] = '~\@@@SPLIT@@@~s';