好的,我运行一个简单的查询,
SELECT description
FROM TABLE
WHERE id = 111;
在我的结果中,我得到:
<p>Blah blah description is here blah blah<p>
然后当我使用 PHP 输出我的结果时:
echo '<ul>' . $row['description'] . '</ul>';
我在我的 html 页面上得到了这个:
<p>Blah blah description is here blah blah</p>
如何摆脱<p>
描述开头和结尾的标签?如果有帮助,我正在为我的页面使用concrete5。谢谢!