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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:10:10
Original
2019 people have browsed it

我的代码是

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

但是为什么输出的是

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

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

回复内容:

我的代码是

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

但是为什么输出的是

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

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

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

Related labels:
php
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template