From: julmis Date: Sat, 15 Jan 2005 20:08:46 +0000 (+0000) Subject: Adding Lorenze Nicola's regexpression. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=210c6aed36549c5f1134ce30d4d83b265eb2a8c8;p=moodle.git Adding Lorenze Nicola's regexpression. --- diff --git a/lib/editor/htmlarea.php b/lib/editor/htmlarea.php index d6e172c4de..243115a594 100644 --- a/lib/editor/htmlarea.php +++ b/lib/editor/htmlarea.php @@ -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>/gi,''). //replace(/<\/i>/gi,'').