当我从表单中的textarea检索数据时,
<?php $editor_data = $_POST['editor1']; ?>
Run Code Online (Sandbox Code Playgroud)
这在当地很好用.
但是,远程服务器返回混合带有转义斜杠的样式的文本,如下所示:
<h3 style=\"color: blue;\"> Initial value.</h3>
Run Code Online (Sandbox Code Playgroud)
我不知道我做错了什么.你有什么主意吗?
请参阅:http: //www.php.net/manual/en/info.configuration.php#ini.magic-quotes-gpc
如果你不能修改php.ini,你可以使用stripslashes函数(http://www.php.net/stripslashes)
| 归档时间: |
|
| 查看次数: |
3166 次 |
| 最近记录: |