riginalEvent.clipboardData;
    var html = clipboard.getData("text/html") || clipboard.getData("text/plain");
    $(e.target).html(unstyle(html));
  });
  $('#text').on('keyup', function(e) {
    $('#html').html($(e.target).val());
  });
  $('#html').on('keyup', function(e) {
    $('#text').val($(e.target).html());
  });
});
</script>
<style type="text/css">
#text, #html {
  float: left;
  width: 50%;
  min-height: 100%;
}
</style>
<body>
<textarea id="text" placeholder="Paste HTML as text here"></textarea>