i am trying to copy the raw html with a div called #copy_history. I have managed to do it with the text works fine but i require the html as well.
The following does work but its grabbing the text not all the html:
script:
$('#copy').click(function() {
var text = $('#copy_history').text();
$('.paste_history').val(text);
});