Current location - Quotes Website - Signature design - After Word2003 is saved as XML format, what label is the newline?
After Word2003 is saved as XML format, what label is the newline?
The line break (\r\n) of a page is different from the line break of word itself, especially in the table of word. If \r\n it is not used in a word table, it will be converted into a word line break, but if \r\n a line break is used in a word table, the word will not be converted. Therefore, please replace \r\n with "

The following program string represents data in an html page, which may contain line breaks. After replacement, the disconnection was successfully realized and the experiment was carried out.

str=str.replace("\r\n "," & lt/w:t >; & lt/w:r & gt; & lt/w:p>& ltw:p wsp:rsidR = \ " 004 C3 b 63 \ " wsp:rsidR default = \ " 004 C3 b 63 \ " wsp:rsidP = \ " 00302 fb9 \ " & gt; & ltw:pPr & gt; & lt Female: RPR><w: R Fonts w: ASCII = \ "\" w: H-ANSI = \ "\"/> & ltWx:font wx:val=\ "days \ "/& gt;; & ltw:SZ w:val = \ " 24 \ "/& gt; & lt/w:rPr & gt; & lt/w:pPr & gt; & ltw:r & gt; & lt female: RPR><w: rfonts w: ascii = \ "ì \" w: h-ansi = \ "ì \" w: hint = \ "far east \"/> & ltWx:font wx:val=\ "days \ "/& gt;; & ltw:SZ w:val = \ " 24 \ "/& gt; & lt/w:rPr & gt; & ltw:t >);