After my test form textarea line break, it is rn under windows and n under linux (this is not true
test), in addition, under win, r and n both have line-breaking functions
Table 6-1. Escape characters
Sequence
Meaning
n
newline (lf or ascii character 0×0a (10))
r
carriage return (cr or ascii character 0×0d (13))
t
Horizontal tab character (ht or ascii character 0×09 (9))
Backslash
$
Dollar sign
”
Double quotes
[0-7]{1,3}
This regular expression sequence matches a character represented in octal notation
x[0-9a-fa-f]{1,2}
This regular expression sequence matches a character represented in hexadecimal notation
Summary: Many friends say that the newline code n in textarea is like this str_replace("n","
/>”), but we don’t know that this is not the standard line break of window. We should change it to str_replace
("nr","
")This is KO.