Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsUnencode Html in ReportUnencode Html in Report
Previous
 
Next
New Post
5/31/2007 6:23 PM
 

I have encoded html in a field in my database. In this case the forum my query is

Select Top 1 Subject, Body from Forum_Posts where ParentPostID = 0
order by CreatedDate desc

The purpose is to display the most recent entry in the forum.

I used the following two

Html Template

[Body]

and XSL

<stylesheet version="1.0" xmlns="http://www.w3.org/1999/XSL/Transform"><output method="text" version="4.0" indent="yes" omit-xml-declaration="yes"/><template match="DocumentElement/QueryResults"><value-of disable-output-escaping="yes" select="Body"/></template></stylesheet>

 Both result with encoded html being output to the browser which results in the rendered text containg markup IE <BR> actually appears in the text instead of a new line.

Any suggestion on how to Deencode the HTML before it is sent to the browser?

 
New Post
5/31/2007 8:25 PM
 

[This issue has been raised a few times before on this forum, please remember to try searching or browsing the forums before posting to see if your question has already been asked or answered]

There is no way, in the current version, to do this, but it is planned for the next release. Please see the Feature Request RPT-5494 on support.dotnetnuke.com


Andrew Nurse
DotNetNuke Core Team Member and Reports Module Project Lead
Microsoft Certified Professional Developer

 
New Post
8/1/2007 9:42 AM
 

I had a very similar issue - HTML coming back from the database that I wanted to write onto a page of my bespoke control in V4.5.3 of DNN.  I solved it by placing a <span id="spnHTML" runat="server"> on the control and using the following code in the code behind where HTMLFromDatabase is whatever you want to write back...

CType(e.Item.FindControl("spnHTML"), HtmlContainerControl).InnerHtml = Server.HtmlDecode(HTMLFromDatabase)

Kevin

 
Previous
 
Next
HomeHomeDNN Open Source...DNN Open Source...Module ForumsModule ForumsReportsReportsUnencode Html in ReportUnencode Html in Report


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out