Hi Devs,
Any ideas on how to clean up entities a better way. Perhaps a properties file with a bunch of entities and their utf-8 equivalent.

[EMAIL PROTECTED] wrote:
Author: chestnut
Date: Wed Jul 12 10:24:16 2006
New Revision: 421329

URL: http://svn.apache.org/viewvc?rev=421329&view=rev
Log:
replacing “ and ” during doc save

Modified:
    
lenya/trunk/src/modules/fckeditor/java/src/org/apache/lenya/cms/editors/fckeditor/Fckeditor.java

Modified: 
lenya/trunk/src/modules/fckeditor/java/src/org/apache/lenya/cms/editors/fckeditor/Fckeditor.java
URL: 
http://svn.apache.org/viewvc/lenya/trunk/src/modules/fckeditor/java/src/org/apache/lenya/cms/editors/fckeditor/Fckeditor.java?rev=421329&r1=421328&r2=421329&view=diff
==============================================================================
--- 
lenya/trunk/src/modules/fckeditor/java/src/org/apache/lenya/cms/editors/fckeditor/Fckeditor.java
 (original)
+++ 
lenya/trunk/src/modules/fckeditor/java/src/org/apache/lenya/cms/editors/fckeditor/Fckeditor.java
 Wed Jul 12 10:24:16 2006
@@ -101,6 +101,8 @@
                 + addNamespaces(namespaces, getParameterAsString("content"));
         // ToDo: set replacements in an properties file
         content = content.replaceAll(" "," ");
+        content = content.replaceAll("“","“");
+        content = content.replaceAll("”","”");
         saveDocument(encoding, content);
     }


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to