title: How to get meta tag in a string of html?
body: <p>I'm truing to get content of  from string with html to a string with c#.</p>
  <p>I end up with this, but it didn't work as it should</p>
  <pre><code>if (source.Contains(&quot;description&quot;))
              {
                  string St = source;
                  int pFrom = St.IndexOf(&quot;description&quot;) + &quot;description&quot;.Length;
                  int pTo = St.LastIndexOf(&quot;&gt;&quot;);
  
  
                  description = St.Substring(pFrom, pTo - pFrom);
                  while (description.Contains(&quot;&gt;&quot;))
                  {
                      pTo = description.LastIndexOf(&quot;&gt;&quot;);
                      description = description.Substring(0, pTo);
                  }
                  description = description.Replace(&quot;content=&quot;, &quot;&quot;);
                  description = description.Replace(&quot;\&quot;&quot;, &quot;&quot;);
                  description = description.Replace(&quot;/&quot;, &quot;&quot;);
              }
  </code></pre>