How ASP can fully tune data with HTML tags

Source: Internet
Author: User
There is a section of data in a database field (welcome):<p> Welcome you <br> Welcome to your arrival </p> set a variable A, reference it, such as: Dim a A=rs ("Welcome") but the problem is, At present, a is stored in the compiled "welcome you [line] Welcome to your arrival", that is, if a is displayed on the page, the <p><br> and other labels will not be displayed. What I want to do now is how to make a stored in a completely not compiled, the existence of <p><br> and other HTML tags, and then display, but also to display the HTML tags, and do not compile!
can also be very simple, direct output a=server. HTMLEncode (RS ("Welcome")) and then directly output a <%=a%> or Response.Write A on the line!

How ASP can fully tune data with HTML tags

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.