Because the data is verified I used the mysqli_real_escape_string, so that the data in the database directly display such as \ r \ n, I found in the display page shows that the data does not show the style (line-wrapping, bold, data is generally directly copied online content, Some with a format), but directly now the effect
What did this happen?
Reply to discussion (solution)
\ r \ n is the text file carriage return line
And the page is an HTML language with his own line break
NL2BR ()
\ r \ n is the text file carriage return line
And the page is an HTML language with his own line break
NL2BR ()
I copy this directly from the Web page, and I'm not supposed to have a problem like that.
\ r \ n is the text file carriage return line
And the page is an HTML language with his own line break
NL2BR ()
The NL2BR () function inserts an HTML newline character before each new line (\ n) in the string (
)。
Do I have to deal with the data when it's added? How is this going to work?