I am using ajax to gather the CKEditor content and submit it to the server. Once I look at it after it is submitted, all the html tags < and > have been converted to their html entities. This is not what I want, as I obviously need to preserve the HTML.
Is there something I did wrong?
Is there something I did wrong?
Re: Strange Characters after ajax submit
i have the same problem and i haven't found anything usefull yet. If you do please post
Re: Strange Characters after ajax submit
Have you try to use the PHP function html_entity_decode ?
http://www.php.net/manual/en/function.h ... decode.php
Re: Strange Characters after ajax submit
in my javascript i have something like : var data = editor.getData() ;
(The variable data comes with all the characters encoded so i can't get ">" but i get &ht; )
Then i pass this data to Ajax and i'm supposed to get a result.
But because of the transformation that occurs on .getData() i cannot transmit and my application "dies" .
The data doesn't leave de javascript so there is no use using "html_entity_decode()" and if i put it inside the hml as a hidden fields or whatever i won't be an Ajax function anymore because i'd have to submit and stuf.