You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Dave <sn...@gmail.com> on 2008/04/05 16:08:51 UTC

Re: eKit editor plugin & entries with apostrophes

On Sat, Mar 29, 2008 at 10:04 PM, Eric Wittle <er...@wittle.net> wrote:
> I'm using roller 4.0 with the eKit editor plugin. When editing an existing
> entry, the text of the entry is only displayed up to the first single
> quote/apostrophe.
>
>  For example, a blog entry that starts with "Well, I'm sure looking forward
> to an editor plugin that works in Safari" gets cut off after "Well, I" in
> the editor.
>
>  I've tried this in Safari 3.1 and FireFox 2.0 on OS X and IE 6 on Windows,
> and the behavior is the same.
>
>  I assume this is a problem with not escaping single quotes in the hidden
> field that contains the text to be edited. Any chance there is a fix
> available?

The problem might be inside Ekit or in this line of editor-ekit.jsp:

<PARAM NAME="DOCUMENT" VALUE='<HTML><HEAD></HEAD><BODY><s:property
value="bean.text" /></BODY></HTML>'>

The <s:property> does XML escaping by default. I wonder why it's
allowing the apostrophe to go unescaped.

- Dave