recently, I was busy switching a C/S system to B/S. The text editing is changed to the fck Editor, which leads to incorrect display format of old data in the database.
solution: retrieve the data STR first, and then use Str. replaceall ( " " , " & nbsp; " ). replaceall ( "\ r \ n ", "
" );
Note: The removed space is blank "", and the HTML space is & nbsp; this method can also replace tabs.
a solution on the Internet is to use the
label. W3C defines the pre element as follows: pre elements can define pre-formatted text. Text enclosed in the PRE element usually contains spaces and line breaks. The text is also displayed as an equal-width font. For more details, refer. This includes the information you entered on the Code page. Therefore, if you use the pre element, you need to write: pre > text to be output pre >, instead of the following:
pre >
text to be output
pre > the white space before the text is displayed. Unless you really want it to be like this
but I tried it, it converts the data into a long line.