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); }
function apply($text) { require_once 'classTextile.php'; $textile = new TextileFilter(); return $textile->TextileThis($text); }