Off the top of my head.

string cleanString = Regex.Replace( "</?[a-z]+[^>]*>", yourString, 
string.Empty, RegexOptions.IgnoreCase | RegexOptions.Compiled);

Cheers!
Dave
  ----- Original Message ----- 
  From: biirir 
  To: [email protected] 
  Sent: Tuesday, April 26, 2005 9:32 PM
  Subject: [AspNetAnyQuestionIsOk] Strip out HTML tags



  Hope someone can help with this.

  I have many pages where I need to strip out the text from the HTML.

  Example: <font><p>blah blah</p></font> (I need only the blah blah 
  portion)

  How do I remove the html and how do I pull what is between the <p> 
  tags.

  Any help is appreciated.

  Thanks








------------------------------------------------------------------------------
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/
      
    b.. To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]
      
    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 



[Non-text portions of this message have been removed]



 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/AspNetAnyQuestionIsOk/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to