• Home
  • About

Love2Trade’s Blog

Entries RSS | Comments RSS
  • Categories

    • Deals & Discounts
    • Love2Trade News
    • Technical
  • Recent Posts

    • Anonymous ads are now supported!
    • Major upgrades to our servers!
    • Pet fans….REJOICE!
    • Registration errors on Love2Trade
    • Love2Trade Integration with PayPal©
  • Archives

    • September 2010
    • November 2009
    • November 2008
    • October 2008
    • September 2008
    • August 2008
    • June 2008
    • May 2008
    • April 2008
    • March 2008
    • February 2008
    • January 2008
    • November 2007
    • October 2007

Simple Regex to Remove Html tags

Posted on September 30, 2008 by ash

This is one of the simplest regex to remove html tags from some html text. I know its not the best but i’d argue that it’s one of the simplest. ;) public static string RemoveHtml(string txt) {     return Regex.Replace(txt, @"<[^>]*>", ""); }

Filed under: Technical | Tagged: .net, html, regex, tags, xml | 2 Comments »

  •  

    September 2008
    M T W T F S S
    « Aug   Oct »
    1234567
    891011121314
    15161718192021
    22232425262728
    2930  
  • Tags

    ads amazon amazon.com article ash barter barter news buy cheap classified classifieds community coupon coupons deal deals dining dinner discount discounts discussions Distance feedback ford forums free free stuff gift great deals item swap Love2Trade Love2Trade Launch loyal oodle partnership post restaurants sell share social network startup swap trade visitor zone
  • Meta

    • Register
    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.com
  • Blogroll

    • Ash’s Personal Blog
    • Love2Trade Home

Blog at WordPress.com. Theme: Digg 3 Column by WP Designer.