Print Page | Close Window

Display Results in Text rather than HTML

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Rich Text Editor (RTE)
Forum Description: Support forum for the Web Wiz Rich Text Editor (RTE).
URL: https://forums.webwiz.net/forum_posts.asp?TID=24930
Printed Date: 28 March 2026 at 2:24am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Display Results in Text rather than HTML
Posted By: GeekBoy
Subject: Display Results in Text rather than HTML
Date Posted: 02 December 2007 at 1:22am
Hi.

Just downloaded the editor and installed it on to a classified ad site I just put up.
Could not find the problem in the forum so here I am posting.

The script seems to be working fine and everything displays correctly as it should in the display window.

I submit the new ad and it is accepted. However, upon seeing the ad displayed, it does not show correctly.

The HTML tags are showing up as text instead of being recognized.

Appreciate and assistance.

Thanks!




Replies:
Posted By: GeekBoy
Date Posted: 03 December 2007 at 12:28am
I think I may have an answer, but still no solution as I don't know ASP.

This line seems to be the one printing out the item description:

<%=DoSpace(Server.HTMLEncode(rsMain2("col_desc")))%>

According to what I am reading about "HTMLEncode" it means:

The HTMLEncode method applies HTML encoding to a specified string.

So I am thinking since the text is already in HTML, the HTML tags  are being ignored.

Should I change it to:

<%=DoSpace(response.write(rsMain2("col_desc")))%> ?

ASP gurus?

Thanks






Posted By: GeekBoy
Date Posted: 03 December 2007 at 1:00am
Okay <%=DoSpace(response.write(rsMain2("col_desc")))%>  worked fine!






Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net