removed mods directory from the ATutor codebase
[atutor.git] / mods / wiki / plugins / markup / rescuehtml.php
diff --git a/mods/wiki/plugins/markup/rescuehtml.php b/mods/wiki/plugins/markup/rescuehtml.php
deleted file mode 100644 (file)
index f8ac00a..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-<?php
-
-/*
-     Can be used to allow preserving of certain "safe" HTML <tags>
-     (as seen in [sfWiki | http://sfwiki.sf.net/].
-     "Safe" tags include Q, S, PRE, TT, H1-H6, KBD, VAR, XMP, B, I
-     but just see (or change) ewiki_format() for more. They are not
-     accepted if written with mixed lowercase and uppercase letters,
-     and they cannot contain any tag attributes.
-
-     RESCUE_HTML was formerly part of the main rendering function, but
-     has now been extracted into this plugin, so one only needs to
-     include it to get simple html tags working.
-*/
-
-
-$ewiki_plugins["format_source"][] = "ewiki_format_rescue_html";
-
-
-function ewiki_format_rescue_html(&$wiki_source) {
-
-   $safe_html = EWIKI_RESCUE_HTML;
-   $safe_html += 1;
-
-   $rescue_html = array(
-      "br", "tt", "b", "i", "strong", "em", "s", "kbd", "var", "xmp", "sup", "sub",
-      "q", "h2", "h3", "h4", "h5", "h6", "cite",  "u"
-   );
-
-   #-- unescape allowed html
-   if ($safe_html) {
-    /*
-      foreach ($rescue_html as $tag) {
-         foreach(array($tag, "/$tag", ($tag=strtoupper($tag)), "/$tag") as $tag) {
-            $wiki_source = str_replace('&lt;'.$tag.'&gt;', "<".$tag.">", $wiki_source);
-      }  }
-    */
-      $wiki_source = preg_replace('#&lt;(/?('.implode("|",$rescue_html).'))&gt;#i', '<$1>', $wiki_source);
-   }
-
-}
-
-
-?>
\ No newline at end of file