mercredi 6 mai 2015

CKEDITOR How do I send HTML data via json

I am trying to save my CKEDITOR data back to my CMS via ajax/json. However if there is binary inlined in the data (e.g. pasted image) the ajax fails. It seems I have trouble with special characters like \, ", etc.

I cannot find an encode/escape method that works which will escape all the HTML from the CKEditor.getData before I submit it via json.

Aucun commentaire:

Enregistrer un commentaire