title: Copy as html to clipboard programmatically
body: <p>My problem is that user could get html copied to his clipboard without selecting it manually and <strong>Ctrl</strong> + <strong>C</strong>.
  The problem is that all plugins i tried (zClip, ZeroClipboard) copy just plain text. And then if i paste it into the Microsoft Word for example just text is pasted but not html which it represents.
  Is there any way to do that?
  I tried to find solution for my problem here and on the rest of the web but i couldnt.</p>
  
  <pre><code>window.zclip_copyTaskReference = function (event) {
      debugger;
      try {
          var self = $(event.target);
          var taskId = self.attr('data-task-id');
          var taskName = self.attr('data-task-name');
          var href = location.href.replace(/[#]$/, '');
          var link = $('&lt;a&gt;&lt;/a&gt;');
          link.attr('href', href);
          link.text(taskName);
          var html = link.wrap($('&lt;div/&gt;')).parent().html();
          successMessage('Link copied to clipboard');
          //return link[0];
          return html.trim();
          //return (html);
      } catch (e) {
          errorMessage('Failed to copy link');
          return '';
      }
  };
  </code></pre>
  
  <p>init:</p>
  
  <pre><code>    $('.copy-link').zclip({
          path: '/Scripts/jquery/zclip/ZeroClipboard.swf',
          copy: window.zclip_copyTaskReference,
          afterCopy: $.noop()
      });
  </code></pre>