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