The content of the Ajax editor is not complete to the php,php-side code

Source: Internet
Author: User
               var cont=um.geteditor (' Myeditor '). getcontent (); alert (cont); $.ajax ({type: "POST", url: ' a.php ', data: ' content= ' + cont , DataType: "HTML", Async:false,success:function (data) {alert (data);}})


The above code did two pop-up, but the code is not at all, to the PHP side, the code to the font style that is broken, do not know how the matter,




Reply to discussion (solution)

is not the reason for escaping characters

is not the reason for escaping characters


I don't know, if it's escaped, how should I solve it?


is not the reason for escaping characters


I don't know, if it's escaped, how should I solve it?



& is escaped, before inserting a \ Try

I am getting the contents of the editor, the content of the editor is more than N, then how to escape,

You write the content you received in PHP into a file.
View in File

Thank you

JS in use, encodeuricomponent after the good,
var cont= encodeuricomponent (Um.geteditor (' Myeditor '). getcontent ());

Actually, you
Data: {Content:cont},

JQ did it for you.

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.