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
 
Back
Top