You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lenya.apache.org by Doug Chestnut <dh...@virginia.edu> on 2006/07/12 19:32:18 UTC

Re: svn commit: r421329 - /lenya/trunk/src/modules/fckeditor/java/src/org/apache/lenya/cms/editors/fckeditor/Fckeditor.java

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.

chestnut@apache.org 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 &ldquo; and &rdquo; 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("&nbsp;","&#160;");
> +        content = content.replaceAll("&ldquo;","&#8220;");
> +        content = content.replaceAll("&rdquo;","&#8221;");
>          saveDocument(encoding, content);
>      }
>  
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
> For additional commands, e-mail: commits-help@lenya.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: svn commit: r421329 - /lenya/trunk/src/modules/fckeditor/java/src/org/apache/lenya/cms/editors/fckeditor/Fckeditor.java

Posted by Doug Chestnut <dh...@virginia.edu>.
Thanks Gregor!  Swiped it from the html generator.

--Doug

Gregor J. Rothfuss wrote:
> Doug Chestnut wrote:
> 
>> 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.
> 
> 
> jdtidy with the option to emit xml and numeric entities? i am pretty 
> sure something like that is already implemented either in cocoon or in 
> daisy.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
> For additional commands, e-mail: dev-help@lenya.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org


Re: svn commit: r421329 - /lenya/trunk/src/modules/fckeditor/java/src/org/apache/lenya/cms/editors/fckeditor/Fckeditor.java

Posted by "Gregor J. Rothfuss" <gr...@apache.org>.
Doug Chestnut wrote:
> 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.

jdtidy with the option to emit xml and numeric entities? i am pretty 
sure something like that is already implemented either in cocoon or in 
daisy.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lenya.apache.org
For additional commands, e-mail: dev-help@lenya.apache.org