#11391 closed Bug (duplicate)
Double escaping on widgets ?downcast?
Reported by: | xmo | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | UI : Widgets | Version: | |
Keywords: | Cc: |
Description
When introducing non-ascii characters in widget content, after destroying the editor the characters end up escaped to entities twice (and thus one ends up with the character's HTML entity displaying raw: first the character is escaped to an entity, then the entity's opening &
is itself escaped to &
e.g. the character é
ends up saved as é
).
The main text (outside of widgets) has no such issue.
Demonstration:
- go to the ckeditor widgets demo page
- In the simple box's content, insert a non-ascii character e.g. é or ñ
- Switch to source, the character is visibly double-escaped
- Switch back to interpreted, the character has been replaced by its HTML entity
Oddly enough, characters with no named entities don't seem affected e.g. 中国
("China" in chinese), 한국
("Korea" in korean) or 日本
("Japan" in japanese) are unaffected, and so are Россия
("Russia" in russian), المملكة العربية السعودية
("Kingdom of Saudi Arabia" in arabic) or ราชอาณาจักรไทย
("Kingdom of Thailand" in thai), but Lýðveldið Ísland
("Republic of Iceland" in icelandic) breaks. And Cộng hòa Xã hội chủ nghĩa Việt Nam
("Social ist Republic of Vietnam" in vietnamese) is partially broken and partially unbroken.
(nb: had to breakup social ist in 2 because the spam filter is dumb)
Change History (3)
comment:1 Changed 11 years ago by
Resolution: | → duplicate |
---|---|
Status: | new → closed |
Version: | 4.3.1 |
DUP of #11372. We are going to fix it in CKEditor 4.3.2.