title: How to copy HTML formatted text on to Clipboard from Google Chrome extension?
body: <p>Say, in my Chrome extension I need to copy a user formatted HTML text on to Clipboard. The text (in its HTML form) may be something like this:</p>
  
  <pre><code>This is a &lt;b&gt;test&lt;/b&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;
  &lt;div&gt;And this is too&lt;/div&gt;&lt;div&gt;&lt;br&gt;&lt;/div&gt;&lt;div&gt;Thank you&lt;/div&gt;
  </code></pre>
  
  <p>If I use this <a href="https://stackoverflow.com/a/12693636/843732">JavaScript example</a>, all I get copied is HTML markup from above. But I'm wondering, can I copy it as formatted text, or this?</p>
  
  <blockquote>
    <p>This is a <b>test</b><br> And this is
    too<br>Thank you</p>
  </blockquote>