Hay una función de conversión al emitir información de la base de datos, y el espacio de retorno de carro se puede emitir en el estilo original. Este código genera el código como es para el cuadro de texto.
La copia del código es la siguiente:
Functioncc_f_textarea_html_encode (cc_f_t_h_e_str)
IfnotisNull (cc_f_t_h_e_str) andc_f_t_h_e_str <> "" entonces
cc_f_t_h_e_str = reemplazar (cc_f_t_h_e_str, ">", ">")
cc_f_t_h_e_str = reemplazar (cc_f_t_h_e_str, "<", "<")
cc_f_t_h_e_str = reemplazar (cc_f_t_h_e_str, chr (13), "")
cc_f_t_h_e_str = reemplazar (cc_f_t_h_e_str, chr (10) & chr (10), vbcrlf)
cc_f_t_h_e_str = reemplazar (cc_f_t_h_e_str, chr (10), vbcrlf)
cc_f_textarea_html_encode = cc_f_t_h_e_str
Endif
Función final