示例#1
0
function saveHtml($results)
{
    // replace line Breaking by space
    $results = stripLineBreaking($results);
    // strip javascript tags
    $results = stripJscripts($results);
    return $results;
}
示例#2
0
 /**
  * defaultStripOutput : default ouput strip function
  */
 function defaultStripOutput($text)
 {
     if ($text !== '') {
         // replace line breaking tags with whitespace
         $text = stripLineBreaking($text);
         // strip modx sensitive tags
         $text = stripTags($text);
         // strip Jscripts
         $text = stripJscripts($text);
         // strip html tags. Tags should be correctly ended
         $text = stripHTML($text);
     }
     return $text;
 }