title: add attributes to html element (using mvc and razor)
body: <p>i have a partial view like the following</p>
  
  <pre><code>@model BtImage
  
  @{
      string attributes = "";
      foreach (string key in Model.Attributes.Keys)
      {
          string value = Model.Attributes[key]
          attributes += key + "=" + value + " ";
      }
  }
  
  &lt;img @(attributes) src="edit.png" alt="" /&gt;
  </code></pre>
  
  <p>if every attributes value is one word than everything is ok</p>
  
  <p>but if the value of any attribute has more than one word (for example title can be more than one word) the above code prints result like this</p>
  
  <pre><code>&lt;img title="edit" news alt="" /&gt;
  </code></pre>
  
  <p>but i want </p>
  
  <pre><code>&lt;img title="edit news" alt="" /&gt;
  </code></pre>
  
  <p>how should i achieve this.</p>