The quickest way to do this would be to use regular expressions to search
and replace the html tags in your text.
Replace(Replace(Replace(Regex.Replace(yourTextStri ng, "<(.|\n)+?>", " "),
"<", "<"), ">", ">"), "'", "''")
--
Regards
Tim Stephenson MCSD.NET
Charted MCAD & MCSD.NET Early Achiever
"Brian Henry" <br******@adelphia.net> wrote in message
news:eT**************@TK2MSFTNGP12.phx.gbl...
I want a way to remove all the html tags from a string... i have a ton of
html saved in an sql server and its indexed so i can do searches, but when
i return the text i get all the tags back (did server.encode when saveing to
the sql server) how can i remove the tags so i go from "<b>text</b>" to
"text" thanks!