相关疑难解决方法(0)

删除换行符并在PHP中添加BR标记

我有以下文本,我想<br>在每个段落之间添加一个标记.并删除所有换行符.我将如何在PHP中执行此操作?谢谢.

所以这 -

This is some text
for which I would
like to remove 
the line breaks.

And I would also 
like to place
a b>  tag after 
every paragraph.

Here is one more
paragraph.
Run Code Online (Sandbox Code Playgroud)

会成为这个 -

This is some text for which I would like to remove the line breaks.<br/> And I would also like to place a br tag after every paragraph. <br> Here is one more paragraph.
Run Code Online (Sandbox Code Playgroud)

注意:忽略任何字母的突出显示.

html php

3
推荐指数
2
解决办法
8936
查看次数

标签 统计

html ×1

php ×1