Author: michiel
Date: 2010-04-28 11:54:24 +0200 (Wed, 28 Apr 2010)
New Revision: 42065

Modified:
   
mmbase/trunk/applications/vpro-wizards/src/main/java/org/mmbase/applications/vprowizards/spring/util/HTMLFilterUtils.java
Log:
The silly fck editor allows you to add all ikind of shit to anchors. So those 
should not be cleaned, becauses that would be very confusing

Modified: 
mmbase/trunk/applications/vpro-wizards/src/main/java/org/mmbase/applications/vprowizards/spring/util/HTMLFilterUtils.java
===================================================================
--- 
mmbase/trunk/applications/vpro-wizards/src/main/java/org/mmbase/applications/vprowizards/spring/util/HTMLFilterUtils.java
   2010-04-28 09:52:34 UTC (rev 42064)
+++ 
mmbase/trunk/applications/vpro-wizards/src/main/java/org/mmbase/applications/vprowizards/spring/util/HTMLFilterUtils.java
   2010-04-28 09:54:24 UTC (rev 42065)
@@ -6,7 +6,7 @@
 The license (Mozilla version 1.0) can be read at the MMBase site.
 See http://www.MMBase.org/license
 
-*/ 
+*/
 package org.mmbase.applications.vprowizards.spring.util;
 
 import java.io.*;
@@ -23,6 +23,8 @@
 /**
  * HTMLFilter contains utility methods for filtering and html used
  * in input fields
+
+ * Very similar to {...@link org.mmbase.util.transformers.TagStripperFactory}
  *
  * @author Peter Maas <[email protected]>
  */
@@ -46,7 +48,7 @@
         remover.acceptElement("li", null);
         remover.acceptElement("div", null);
         //remover.acceptElement("span", new String[] { "style" });
-        remover.acceptElement("a", new String[] { "href" });
+        remover.acceptElement("a", new String[] { "href", "target", "id", 
"name", "dir", "accesskey", "title", "charset", "class", "style"});
 
         // embedded video's
         remover.acceptElement("object", new String[] { "width","height" });

_______________________________________________
Cvs mailing list
[email protected]
http://lists.mmbase.org/mailman/listinfo/cvs

Reply via email to