Logo 
Search:

Asp.net Forum

Ask Question   UnAnswered
Home » Forum » Asp.net       RSS Feeds

Rendering HTML tags

  Asked By: Sebastion    Date: Nov 13    Category: Asp.net    Views: 692
  

I'm retrieving data from an xml file, and some of the data contains html
tags. When I try to display this data using an asp:label or asp:literal tag,
the html tags are stripped out. Is there anyway I can get around this?

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Roderick King     Answered On: Nov 13

When I tried that it told me my xml  wasn't valid ?

Just replace < with < and > with > in your xml .... but there will be
others ... figur it out in Frontpage.

Example .... cut and paste the following line into a htm file

<img src="/server/dynamic.aspx?x1=p1&x2=p2&y1=p3&y2=p4">

 
Answer #2    Answered By: Fatih Farooq     Answered On: Nov 13

Thanks for the help. The xml  may be valid in this case because the
only html  tag in the data  is .

 
Didn't find what you were looking for? Find more on Rendering HTML tags Or get search suggestion and latest updates.




Tagged: