title: How to replace this HTML snippet in some text?
body: <p>I am using ASP.NET 4.5 and C#</p>
  
  <p>I want to replace :</p>
  
  <pre><code>&lt;div style="page-break-after:always"&gt;&lt;span style="display:none"&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
  </code></pre>
  
  <p>in a string with:</p>
  
  <pre><code>&lt;br style="page-break-after: always;" /&gt;
  </code></pre>
  
  <p>I have tried:</p>
  
  <pre><code>//string strContent is a string that contains HTML content
  strContent = strContent.Replace("&lt;div style='page-break-after:always'&gt;&lt;span style='display:none'&gt;&amp;nbsp;&lt;/span&gt;&lt;/div&gt;", "&lt;br style='page-break-after: always;' /&gt;"); 
  </code></pre>
  
  <p>But with no success. Obviously I am missing something simple.</p>
  
  <p>Help hugely appreciated. </p>