Home >Web Front-end >HTML Tutorial >About converting textarea text to html, that is, carriage return and line feed_HTML/Xhtml_Web page production

About converting textarea text to html, that is, carriage return and line feed_HTML/Xhtml_Web page production

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-05-16 16:38:221181browse

Description: Change the carriage return and line feed in the textarea value

Copy the code
The code is as follows:

<%=Content value%>.Replace("rn", "
").Replace("n", "
") %>
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