Opened 5 years ago

Closed 5 years ago

Last modified 5 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 5 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 5 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 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy