How to upload special symbols

Source: Internet
Author: User
For special symbols, the upload younger brother uses CKEDITOR to generate some pure html code & lt; pstyle = & quot; text-align: center; & quot; & gt; 1. & amp; quot; me & amp; quot; & lt;/p & gt; & lt; strong & gt; & lt; em & gt; & lt; u & gt; 2. upload of special symbols
The younger brother used CKEDITOR to generate some pure html code


1. "I"



2. "love"



3. "you"




The variable zt_text is assigned successfully. the variable is javascript, not php!

I want to use ajax to upload zt_text to the background

But I can only get


Because there is a double quotation mark

Is there any way to replace any character?

Save the original html code to mysql?

After saving

How can I use php to display it on the page?

------ Solution --------------------
It is passed through url. Have you tried using post Upload?
XmlHttp. open ('post', url, true)
XmlHttp. setRequestHeader ("Content-type", "application/x-www-form-urlencoded ");
XmlHttp. send (zt_text); // zt_text = your html code.

Php:
$ Zt_text = $ _ PSOT ['zt _ text'];

Have you tried this?

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.