When a program is developed, the <WW: Property> label must be used to display the data entered in the background at the front end, but the displayed content is accumulated together, the entered line feed information cannot be displayed.
After research, it is found that the <WW: Property> label cannot display the line feed information. You must set the attribute to escape = "false", and then escape the output content in HTML, you can display line breaks and other information.
My code is as follows:
1. Front-end display: <WW: property value = "faqform. Content" Escape = "false"/>
2. faqform. setcontent (stringutils. tohtml (faqform. getcontent ()));
The tohtml method is as follows:
Public static string tohtml (string Str ){
If (STR = NULL)
STR = "";
String html = STR;
Html = Replace (HTML, "&", "& amp ;");
Html = Replace (HTML, "<", "& lt ;");
Html = Replace (HTML, ">", "& gt ;");
Html = Replace (HTML, "/R/N", "/N ");
Html = Replace (HTML, "/N", "<br> ");
Html = Replace (HTML, "/T ","");
Html = Replace (HTML, "", "& nbsp ;");
Html = Replace (HTML, "/" "," & quot ;");
Return HTML;
}