$('[data-clipboard]').each(function() {
  var text = $(this).parent().find('code').text().replace('&lt;', '<').replace('&gt;', '>');
  var clipboard = new Clipboard(this, {text: function() {return text}});
  clipboard.on('success', function(e) {
    $(e.trigger).text('Copied!');
    e.clearSelection();
  });
});

$('[data-clipboard]').each(function() {
  var self = this;
  var clipboard = new Clipboard(this, {text: function() {
    var text = $(self).parents('.code-box').find('code:visible').text().replace('&lt;', '<').replace('&gt;', '>');
    return text;
  }});
  clipboard.on('success', function(e) {
    $(e.trigger).text('Copied!');
    e.clearSelection();
  });
});

Fix copy in new markup structure
Fix copy in new markup structure
