nl2br () Definition and usage
The NL2BR () function inserts an HTML newline character before each new line (\ n) in the string (
)。
GrammarNL2BR (String) parameter description
string is required. Specifies the string to check.
Example
Copy
In the HTML to write the page, in order to make the content of the Web page looks neat and smooth, we need to wrap the text content, then, HTML How to change the line? This article will introduce you to the HTML text wrapping method.
There are many
Today, I encountered a textarea line feed problem in the project, which was not solved after debugging for half a day. You need to convert the carriage return text in textarea into a br and store it in the database. The following is my solution to
Here is my solution to the problem, and finally I understand it completely, it's almost capsized in the gutter.
1. You must know that the line break in textarea is \ nthe (personal detection found to hit Enter is \ n, as if under Linux is \ r \ n)
2.
Today, I encountered a textarea line feed problem in the project, which was not solved after debugging for half a day. You need to convert the line breaks in textarea into and save them to the database.
The following is my solution to this
The following is my solution to this problem. At last, I fully understood it. It was a real risk of turning around the ship.
1.You must know that the linefeed in textarea is \ n (I found that the Enter key is \ n, as if it is \ r \ n in
Create a WEB online editor-insert HTML tags before you think that the WEB online editor is nothing more than replacing the input content and quickly inserting HTML code, but when you do it, it is found that although the principle is that, but the
Related Articles: beginners are familiar with HTML to learn about some HTML tags (5). These HTML tags do not necessarily comply with XHTML specifications. You should make a choice in the actual layout, such as the B mark and FONT mark, which do not
a common head element tag The element contains all the header tag elements.1. The tag defines the title of the HTML document, which is required in the html/xhtml document.Main functions:
Defines the title of the browser toolbar;
The
There are many HTML editors on the market now, and even if you don't have much HTML knowledge, you can easily edit HTML files. Small compiled five useful HTML editor recommended to everyone.five free and useful HTML editor recommended1th
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.