How to remove <p> and <b> and <i> tags

Hi, 

I have some text in the database which has Html tags. I want that when I display the data the tags are removed.
HighOnCoding
Wanna get high!
0
azamsharp
7/24/2004 2:49:22 AM
📁 asp.net.web-forms
📃 93655 articles.
⭐ 1 followers.

💬 2 Replies
👁️‍🗨️ 89 Views

You might consider called Server.HtmlEncode(data) on the rows to convert the html to characters that will be displayed in the browser.
--Brian Desmond
Windows Server MVP - Directory Services
http://www.briandesmond.com
0
bdesmond
7/24/2004 4:15:39 AM
Hi, 

Thanks for the Quick reply. Well now its displaying something like this:
" &lt;P&gt;&lt;P&gt; &lt;i&gt;&lt;P&gt;if( dr.Read())&lt;P&gt;&lt;P&gt;{&lt;P&gt;&lt;P&gt;Label1.Text = dr.GetString(0);&lt;P&gt;}&lt;P&gt; &lt;/i&gt; "
What i need is to convert bold tag to bold text. Any idea how to do that.
HighOnCoding
Wanna get high!
0
azamsharp
7/24/2004 4:23:01 AM
Reply: