Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - Display Results in Text rather than HTML
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Forum LockedDisplay Results in Text rather than HTML

 Post Reply Post Reply
Author
GeekBoy View Drop Down
Newbie
Newbie


Joined: 25 June 2007
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote GeekBoy Quote  Post ReplyReply Direct Link To This Post Topic: Display Results in Text rather than HTML
    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!

Back to Top
GeekBoy View Drop Down
Newbie
Newbie


Joined: 25 June 2007
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote GeekBoy Quote  Post ReplyReply Direct Link To This Post 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




Back to Top
GeekBoy View Drop Down
Newbie
Newbie


Joined: 25 June 2007
Status: Offline
Points: 10
Post Options Post Options   Thanks (0) Thanks(0)   Quote GeekBoy Quote  Post ReplyReply Direct Link To This Post Posted: 03 December 2007 at 1:00am
Okay <%=DoSpace(response.write(rsMain2("col_desc")))%>  worked fine!



Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.