The data submitted using mysqli_real_escape_string has a format, and the output data is also formatted. because the data is verified, I used mysqli_real_escape_string, so that the data is directly displayed in the database in a format such as \ r \ n, when I show the page, I find that the data does not show the current style (line feed, bold, data is generally directly copied online content, some with the format), but the current effect
What happened?
Reply to discussion (solution)
\ R \ n is the text file's carriage return line break
The page is an html language with its own line break.
Nl2br ()
\ R \ n is the text file's carriage return line break
The page is an html language with its own line break.
Nl2br ()
I copied this directly from the web page. I wouldn't say you would have said this.
\ R \ n is the text file's carriage return line break
The page is an html language with its own line break.
Nl2br ()
The nl2br () function inserts an HTML line break (
).
Do I have to process the data when it is added? How can this problem be solved?