title: MVC Razor string.format in html.raw
body: <p>I use this razor code to generate a HTML button that calls a function with a value from the model:</p>
  
  <pre><code>Html.Raw(string.Format("&lt;button type='button' class='btn btn-success btn-xs' onclick='setCoordinatorForService('{0}')'&gt;Åta&lt;/button&gt;", item.Name))
  </code></pre>
  
  <p>The value of item.Name is "abc", the code:</p>
  
  <pre><code>&lt;button type="button" class="btn btn-success btn-xs" onclick="setCoordinatorForService(" abc')'=""&gt;Åta&lt;/button&gt;
  </code></pre>
  
  <p>I want this:</p>
  
  <pre><code>&lt;button type="button" class="btn btn-success btn-xs" onclick="setCoordinatorForService("abc")'=""&gt;Åta&lt;/button&gt;
  </code></pre>
  
  <p>What am i doing wrong?</p>