PHP implements line feed output for carriage return in html source code
Enter a line break in the source code, but do not display characters such as br. We need to use php to turn the characters into characters. Let's take a look at the following.
In the source code to enter a newline but do not display such as BR characters we need to escape the characters in PHP to achieve, the following is a look at it.
Knowledge expansion
transition sequence
description
\ n is a line change, English is the LINEFEED,ASCII code is 0xA.
\ r is enter, English is carriage return, ASCII code is 0xD.
If you use a mechanical typewriter, you know the difference between carriage return and line change ...
The line is to
Php obtains the textarea value and processes the carriage return and line feed method. textarea returns the line feed. Php obtains the textarea value and processes the carriage return and line feed method. the example in this article describes how
Introduction: Reading symfony$ Value = str_replace (Array ("/R/N", "/R"), "/N", $ value) is found in the source code );
What is the difference between carriage return and line feed?(Link: http://www.52rd.com/Blog/Detail_RD.Blog_imjacob_12317.html)
Http://www.cnblogs.com/dartagnan/archive/2010/12/14/2003499.html Linux and Windows carriage return line break
Source:
"Carriage Return" vs "line feed)Before the computer appeared, there was a kind of device called teletype model 33, which can
Php replaces textbox carriage return with html line feed code. The source of MailBody is sometimes the text content in TextBox. However, if you do not process the text content, the text will not have any format, and it will be squeezed together and
PHP gets the value of textarea and handles the method of carriage return, textarea carriage return line
This example describes how PHP gets the value of the textarea and handles the carriage return line-wrapping method. Share to everyone for your
How to Use .html () in jquery (),. text () and. val () is used to read and modify the html structure of an element, the text content of an element, and the value of a form element. This section describes how to use .html () in jquery (),. text ()
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.