title: Extract content in paragraph Tags
body: <p>I have following html in string and i have to extract the content only in Paragraph tags  any ideas??</p>
  
  <p>link is <a href="http://www.public-domain-content.com/books/Coming_Race/C1P1.shtml" rel="nofollow noreferrer">http://www.public-domain-content.com/books/Coming_Race/C1P1.shtml</a></p>
  
  <p>I have tried  </p>
  
  <pre><code>  const string HTML_TAG_PATTERN = "&lt;[^&gt;]+.*?&gt;";
      static string StripHTML(string inputString)
              {
                  return Regex.Replace(inputString, HTML_TAG_PATTERN, string.Empty);
              }
  </code></pre>
  
  <p>it removes all html tags but i dont want to remove all the tags because this is the way how i can get content like paragraph by tags</p>
  
  <p>secondly it makes line breaks to \n in text and and applying replace("\n","") dose not helps
  one problem is that when i apply</p>
  
  <pre><code>int UrlStart = e.Result.IndexOf("&lt;p&gt;"), urlEnd = e.Result.IndexOf("&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;\r" );
       string paragraph = e.Result.Substring(UrlStart, urlEnd);
       extractedContent.Text = paragraph.Replace(Environment.NewLine, "");
  </code></pre>
  
  <p><code>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;/td&gt;\r</code> this appears at the end of paragraph but urlEnd dose not makes sure only paragraph is shown</p>
  
  <p>the string extracted is shown in visual studio is like this
  <img src="https://i.stack.imgur.com/GLqo2.jpg" alt="alt text">
  this page is downloaded by Webclient
  End of HTMLpage</p>
  
  <pre><code>We will provide ourselves with ropes of\rsuitable length and strength- and- pardon me- you must not\rdrink more to-night.  our hands and feet must be steady and\rfirm tomorrow.\"\r&lt;p&gt;&amp;nbsp;&lt;/p&gt;     &lt;/td&gt;\r    &lt;/tr&gt;\r\r    &lt;tr&gt;\r     &lt;td height=\"25\" width=\"10%\"&gt;\r     \r     &lt;/td&gt;&lt;td height=\"25\" width=\"80%\" align=\"center\"&gt;\r       &lt;font color=\"#FFFFFF\"&gt;\r       &lt;font size=\"4\"&gt;1&lt;/font&gt; &amp;nbsp;\r       &lt;/font&gt;&lt;/td&gt;\r     &lt;td height=\"25\" width=\"10%\" align=\"right\"&gt;&lt;a href=\"C2P1.shtml\"&gt;Next&lt;/a&gt;&lt;/td&gt;\r    &lt;/tr&gt;\r   &lt;/table&gt;\r  &lt;/center&gt;\r&lt;/div&gt;\r&lt;p align=\"center\"&gt;&lt;a href=\"index.shtml\"&gt;&lt;b&gt;The Coming Race -by- Edward Bulwer Lytton&lt;/b&gt;&lt;/a&gt;&lt;/p&gt;\r&lt;P&gt;&lt;B&gt;&lt;center&gt;&lt;A HREF=\"http://www.public-domain-content.com/encyclopedia.shtml\"&gt;Encyclopedia&lt;/a&gt; - &lt;A HREF=\"http://www.public-domain-content.com/books.shtml\"&gt;Books&lt;/a&gt; - &lt;A HREF=\"http://www.public-domain-content.com/religion.shtml\"&gt;Religion&lt;a/&gt; - &lt;A HREF=\"http://www.public-domain-content.com/links2.shtml\"&gt;Links&lt;/a&gt; - &lt;A HREF=\"http://www.public-domain-content.com/\"&gt;Home&lt;/a&gt; - &lt;A HREF=\"http://www.webmaster-headquarters.com/mb/\"&gt;Message Boards&lt;/a&gt;&lt;/B&gt;&lt;BR&gt;This &lt;a HREF=\"http://www.wikipedia.org/\"&gt;Wikipedia&lt;/a&gt; content is licensed under the &lt;a href=\"http://www.gnu.org/copyleft/fdl.html\"&gt;GNU Fr
  </code></pre>