为何我整合ckeditor和ckfinder后,上传图片成功但无法在另一个页面显示

WBOY
Release: 2016-06-23 13:58:08
Original
861 people have browsed it

整合后,我都已经可以在textarea中插入图片了,如下图:

但是,我点击下面的“发表”按钮,却始终无法正常显示该图片,文字就可以正常显示,如下图:



编辑页面源代码:






article中的代码:
<?php 	header("Content-Type:text/html; charset=utf-8"); 	echo "<pre class="brush:php;toolbar:false">";	print_r($_POST);	echo "
Copy after login
";?>

请各位高手指点迷津,非常感谢!


回复讨论(解决方案)

点击左上“源码”看一下

点击左上“源码”看一下



斯蒂芬斯蒂芬

你打印之后的结果查看源码看看。

你打印之后的结果查看源码看看。


<pre class="brush:php;toolbar:false">Array(    [ck1] => <p>	<img alt=\"\" src=\"http://localhost/phpdocs/szgxdb/ad/uploads/images/vid(7).jpg\" style=\"width: 66px; height: 66px;\" />sdfsd</p>    [btn] => 发表)
Copy after login

你没有看到双引号被转义了吗?

你没有看到双引号被转义了吗?


看到了,但是它是自动转义的啊,应该怎么做才能不让它多此一举呢?谢谢

不用编辑器提交怎么样?随便输入个 aa'bb" 提交看下结果是什么。

不用编辑器提交怎么样?随便输入个 aa'bb" 提交看下结果是什么。


好的,明早去公司试下,谢谢

按理说他是智能判断的,不知道你改了什么

$_POST = array_map('stripslashes', $_POST);

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!