Home >Backend Development >PHP Tutorial >php输出html代码怎样取消pre标签

php输出html代码怎样取消pre标签

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:10:102045browse

我的代码是

<code>echo '<form method="post" action="/sea.php">
<input name="user" placeholder="用户名">
<input class="login" name="login" type="submit" value="提交">
</form>';
</code>

但是为什么输出的是

<code><pre class="brush:php;toolbar:false">
;

我知道了,是我把页面类型设置为json了

回复内容:

我的代码是

<code>echo '<form method="post" action="/sea.php">
<input name="user" placeholder="用户名">
<input class="login" name="login" type="submit" value="提交">
</form>';
</code>

但是为什么输出的是

<code><pre class="brush:php;toolbar:false">
;

我知道了,是我把页面类型设置为json了

肯定什么地方输出了pre否则不可能,检查代码吧,用exit来几个断点查查看

Statement:
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