protect <table> HTML tags before passing to Textile
[diogenes.git] / plugins / TextileMarkup.php
index 29f700d..e71ae2c 100644 (file)
@@ -49,7 +49,9 @@ class TextileMarkup extends Diogenes_Plugin_Filter
   function filter($input)
   {
     $textile = new Textile();
-    return $textile->TextileThis($input);
+    $data = htmlProtectFromTextism($input);
+    $data = $textile->TextileThis($data);
+    return htmlUnprotectFromTextism($data);
   }
   
 }