Search code examples
htmlvbscriptasp-classic

Print out HTML email in plain text into browser in Classic ASP


I am trying to see what markup my HTML email has inside of it. So I want to print out:

Order Confirmation Email

As HTML tags onto the page like so:

<b>Order Confirmation Email</b>

How can I achieve this in Classic ASP (VBScript)? I looked at this thread and used the function mentioned on there, but it did not work.


Solution

  • use Server.HTMLEncode(string)

    <%
     response.write(Server.HTMLEncode("The image tag: <img>"))
    %>
    

    http://www.w3schools.com/asp/met_htmlencode.asp