]> git.mjollnir.org Git - moodle.git/commitdiff
Adding Lorenze Nicola's regexpression.
authorjulmis <julmis>
Sat, 15 Jan 2005 20:08:46 +0000 (20:08 +0000)
committerjulmis <julmis>
Sat, 15 Jan 2005 20:08:46 +0000 (20:08 +0000)
lib/editor/htmlarea.php

index d6e172c4de5a1a4383d721c875dcbbe006b7b0d1..243115a5948f365b993f76c1d1317570dc34586d 100644 (file)
@@ -952,6 +952,10 @@ HTMLArea.prototype._wordClean = function() {
             replace(/<\/?pre[^>]*>/gi,' ').
             replace(/<(\/?)(h[1-6]+)[^>]*>/gi,'<$1$2>');
 
+        // Lorenzo Nicola's addition
+        // to get rid off silly word generated tags.
+        D = D.replace(/<!--\[[^\]]*\]-->/gi,' ');
+
         //remove empty tags
         //D = D.replace(/<strong><\/strong>/gi,'').
         //replace(/<i><\/i>/gi,'').