Пример #1
0
 /**
  * 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));
 }
Пример #2
0
 /**
  * @deprecated 2.5
  * Use gp_edit::tidyFix()
  */
 function tidyFix(&$text)
 {
     includeFile('tool/editing.php');
     return gp_edit::tidyFix($text);
 }