From 210c6aed36549c5f1134ce30d4d83b265eb2a8c8 Mon Sep 17 00:00:00 2001 From: julmis Date: Sat, 15 Jan 2005 20:08:46 +0000 Subject: [PATCH] Adding Lorenze Nicola's regexpression. --- lib/editor/htmlarea.php | 4 ++++ 1 file changed, 4 insertions(+) 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,''). -- 2.39.5