Opened 17 years ago

Closed 17 years ago

#715 closed Bug (duplicate)

Apostrophes broken in FCKeditor.Java

Reported by: jsampson@… Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: SF Cc:


In FCKeditor.Java version 2.3, in the file, the HTMLEncode method escapes apostrophes incorrectly. It uses ’, which is actually the Windows Cp1252 encoding of the right single quotation mark character (U+2019). Apostrophe is actually U+0027, or '.

The symptom is that when a text containing apostrophes is edited, the apostrophes are all converted to right single quotation marks at the time of rendering the editor.

My recommendation is to simply not escape apostrophes at all, since the output of this method is never placed inside apostrophes (it's used both as a double-quoted HTML attribute value and as the text content within an HTML element). Simply remove the following line from the HTMLEncode method:


Moved from SF:

Change History (2)

comment:1 Changed 17 years ago by Martin Kou

Reporter: changed from Martin Kou to jsampson@…

comment:2 Changed 17 years ago by Alfonso Martínez de Lizarrondo

Resolution: duplicate
Status: newclosed

dup of #724

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy