#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 & hello it is being displayed after fetch as: Hi & hello
Change History (2)
comment:1 Changed 11 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Version: | 4.0.3 |
comment:2 Changed 11 years ago by
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.
You encode data at some point and not decode them. It's a bug in your backend.