/** * Clean a string of html that may be used as file content * * @param string $text The string to be cleansed. Passed by reference */ public static function CleanText(&$text) { includeFile('tool/editing.php'); gp_edit::tidyFix($text); gpFiles::rmPHP($text); gpFiles::FixTags($text); $text = gpPlugin::Filter('CleanText', array($text)); }
/** * Clean a string of html that may be used as file content * * @param string $text The string to be cleansed. Passed by reference */ function cleanText(&$text) { includeFile('tool/editing.php'); gp_edit::tidyFix($text); gpFiles::rmPHP($text); gpFiles::FixTags($text); }