Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#11637 closed Bug (invalid)

HTML format

Reported by: jyothsna Owned by:
Priority: Normal Milestone:
Component: General Version:
Keywords: Cc:

Description

while saving data from editor it is saving with html tags. While retrieving same data it is showing html tags in the editor.

For Eg: I have typed: Hi& Hello it is being saved as Hi &AMP hello it is being displayed after fetch as: Hi & hello

Change History (2)

comment:1 Changed 11 years ago by Piotrek Koszuliński

Resolution: invalid
Status: newclosed
Version: 4.0.3

You encode data at some point and not decode them. It's a bug in your backend.

comment:2 Changed 11 years ago by Jakub Ś

Ampersand character is a special case which must always be encoded (http://www.w3.org/TR/xhtml1/#C_12).

You may disable this encoding with below configuration option http://docs.ckeditor.com/#!/api/CKEDITOR.config-cfg-forceSimpleAmpersand but you should not do it as & does not break anything while '&' can. For example sending via GET '&' may break URL.

If you wish to save & as '&' you should chnage them on your server side before saving into DB.

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