Replace ' with \' in C#
<p>In this variable, i would like to add some \ before every '.</p>

<pre><code>string html = 
    "&lt;a href=\"annee-prochaine.html\"&gt;Calendrier de l'annee prochaine&lt;/a&gt;"

html = html.Replace("'", "\'"); //No change
html = html.Replace("\'", "\'"); //No change

html = html.Replace("\'", "\\'");
//html =&gt; &lt;a href=\"annee-prochaine.html\"&gt;Calendrier de l\\'annee prochaine&lt;/a&gt;
html = html.Replace("\'", @"\'");
//html =&gt; &lt;a href=\"annee-prochaine.html\"&gt;Calendrier de l\\'annee prochaine&lt;/a&gt;
</code></pre>

<p>I would like to get that after Replace :</p>

<pre><code>//html =&gt; &lt;a href=\"annee-prochaine.html\"&gt;Calendrier de l\'annee prochaine&lt;/a&gt;
</code></pre>

<p>Any ideas ?</p>

<p>Thanks! </p>
