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

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

WBOY
Release: 2016-06-02 11:29:17
Original
1112 people have browsed it

mysqljavascripthtmljqueryphp

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

输入完后转成:

<code> '<p>'我是一个粉刷匠'</p>''<p>'大家好'</p>''<p>'啦啦啦'</p>'</code>
Copy after login
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template