title: Passing an object to HTML attributes
body: <p>How to pass an object to HTML attributes?
  For example I have the following code:</p>
  
  <pre><code>var attrs = new { id = "myid", style = "color: Red;" };
  </code></pre>
  
  <p>How to convert attrs to string like this to embed them into an HTML markup: </p>
  
  <pre><code>id="myid" style="color: Red;"
  </code></pre>
  
  <p>Thanks in advance :)</p>