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?