Click to See Complete Forum and Search --> : tags as text
joey o.
Jan 12th, 2001, 04:48 PM
How do I display html and asp tags and code on an asp page as text(without executing)?
I'm able to use char(num) to get the html tags as text but not the asp "<%%>" 's
JeffB
Jan 12th, 2001, 08:31 PM
For the HTML, you can use the <plaintext> tags:
<plaintext>This is the text and/or html you want to display</plaintext>
For the ASP, simply use the URLEncoded versions of the <% and %> to display the "<%","%>" tags:
<%<br>
for i = 1 to 10<br>
Response.Write "hello world"<br>
next<br>
%><br>
Hope that helps...
JeffB
vbdeveloper
Jan 13th, 2001, 12:57 AM
Hello,
Use the HTMLEncode() method. It will work.
Bye and have a good time programming.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.