diff --git a/js/zerobin.js b/js/zerobin.js index a9b6c1d9..2b2497ff 100644 --- a/js/zerobin.js +++ b/js/zerobin.js @@ -453,10 +453,9 @@ function stateExistingPaste() { */ function rawText() { - history.pushState(document.title, document.title, 'document.txt'); - var paste = $('div#cleartext').text(); - var newDoc = document.open('text/plain', 'replace'); - newDoc.write(paste); + var paste = $('div#cleartext').html(); + var newDoc = document.open('text/html', 'replace'); + newDoc.write('
'+paste+''); newDoc.close(); }