diff --git a/js/zerobin.js b/js/zerobin.js index 4d5f64aa..57bc6fb9 100644 --- a/js/zerobin.js +++ b/js/zerobin.js @@ -439,10 +439,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(); }