includes/wikiengine/render_xhtml.php
changeset 1174 def792dd9b1b
parent 1156 417e66a664d0
child 1187 5d33f9511995
--- a/includes/wikiengine/render_xhtml.php	Fri Dec 18 05:12:02 2009 -0500
+++ b/includes/wikiengine/render_xhtml.php	Fri Dec 18 09:39:18 2009 -0500
@@ -156,6 +156,11 @@
     global $email;
     return $email->encryptEmail($pieces[1], '', '', $pieces[2]);
   }
+  
+  public function code($match)
+  {
+    return '<pre>' . htmlspecialchars($match[0]) . '</pre>';
+  }
 }
 
 // Alias internal link parsing to RenderMan's method