コード例 #1
0
 /**
  * remove <?php code ?>, [[text]], link, script, scriptblock and styleblock from a given string
  * and return the cleaned string
  *
  * @param string $sValue
  * @returns
  *    false: if @param is not a string
  *    string: cleaned string
  */
 public function StripCodeFromText($mText, $iFlags = Sanitize::REMOVE_DEFAULT)
 {
     if (!class_exists('Sanitize')) {
         include __DIR__ . '/Sanitize.php';
     }
     return Sanitize::StripFromText($mText, $iFlags);
 }