get rid of html tag

  • Thread starter Thread starter Aaron
  • Start date Start date
A

Aaron

i have a string

string s = "hello <b>world</b>";

i would the ouput to be "hello world" without the tags.
 
Although I am looking for a similiar solution (the difference being that I
need to *render* my html content as oppossed to simply removing it), a
simple regex expression will work. If you need to actually render the
string bolded, you'll have to use regex in conjunction with some additional
formatting. There are some 3rd party libraries out there that strip html
out if this is not an option for you. Google 'HTML Stripper'.

HTH,
Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Why do I not need a closing tag 2
Delegates and Reference Types 1
Import File Information 0
instantiating string 9
Formatting text in RichTextBox 2
Linq. Select 1
can somebody explain this 6
(Collection) 1

Back
Top