0

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.

halfer
  • 19,824
  • 17
  • 99
  • 186
J86
  • 14,345
  • 47
  • 130
  • 228

1 Answers1

1

use Server.HTMLEncode(string)

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

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

John
  • 1,327
  • 1
  • 17
  • 28