Home  >  Article  >  Backend Development  >  mysql-如何在textarea输入的内容,每段都被<p></p>包裹起来?

mysql-如何在textarea输入的内容,每段都被<p></p>包裹起来?

WBOY
WBOYOriginal
2016-06-02 11:29:171086browse

mysqljavascripthtmljqueryphp

例如:
我是一个粉刷匠
大家好
啦啦啦

输入完后转成:

<code> '<p>'我是一个粉刷匠'</p>''<p>'大家好'</p>''<p>'啦啦啦'</p>'</code>
Statement:
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