nl2br() 函数

在字符串中的新行(n)之前插入换行符:

以上代码的浏览器输出:

One line.
Another line.

以上代码的 HTML 输入(查看源代码):

One line.
Another line.