Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在检索时将一些包含段落的文章插入数据库时,我遇到了一个问题,它显示文章但没有段落。所以它看起来像页面上的脏字。那么是否有任何技巧或代码来保存带有段落的文章,并在显示时显示它。
HTML 忽略回车并折叠多个空格。您必须插入适当的标签,例如<br>. 看看nl2br()。
<br>