Escape curly brace input from form c#
<p>I know that in order to use curly braces with String.Format, I have to use double curly braces, i.e. "{{" and "}}". My question is, how do I make this work with a string that comes from a form? I've tried </p>

<pre><code>str.Replace("{","{{");
str.Replace("}","}}");
</code></pre>

<p>But this doesn't seem to work. Any Ideas?</p>
