function of the original style of outputting data to text box in ASP _ Application techniques

Source: Internet
Author: User
There is a conversion function when outputting information from the database, and you can output a carriage return space by the original style. This code can output code to the text box as it is.
Copy Code code as follows:

Function Cc_f_textarea_html_encode (CC_F_T_H_E_STR)
If not IsNull (CC_F_T_H_E_STR) and Cc_f_t_h_e_str <> "" Then
Cc_f_t_h_e_str = Replace (Cc_f_t_h_e_str, ">", ">")
Cc_f_t_h_e_str = Replace (Cc_f_t_h_e_str, "<", "<")
Cc_f_t_h_e_str = Replace (Cc_f_t_h_e_str, CHR (13), "")
Cc_f_t_h_e_str = Replace (Cc_f_t_h_e_str, CHR (a) & CHR (a), vbCrLf)
Cc_f_t_h_e_str = Replace (Cc_f_t_h_e_str, CHR (), vbCrLf)
Cc_f_textarea_html_encode = Cc_f_t_h_e_str
End If
End Function


Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.