Beispiel #1
0
 public function preview()
 {
     require_once 'classTextile.php';
     $textile = new TextileFilter();
     echo $textile->TextileThis($_POST['data']);
     // For untrusted user input, use TextileRestricted instead:
     // echo $textile->TextileRestricted($in);
 }
Beispiel #2
0
 function apply($text)
 {
     require_once 'classTextile.php';
     $textile = new TextileFilter();
     return $textile->TextileThis($text);
 }