Browse Source

Fixed encoding issue when decoding base64 text

pull/4/head
Kim Grytøyr 4 years ago
parent
commit
d27a630ced
  1. 2
      src/public/javascripts/syntax.js

2
src/public/javascripts/syntax.js

@ -73,7 +73,7 @@ ready(() => {
}
openpgp.decrypt(options).then(function(plaintext) {
document.getElementById('paste').innerHTML = atob(plaintext.data);
document.getElementById('paste').innerHTML = decodeURIComponent(escape(window.atob(plaintext.data)));
const block = document.getElementById('paste');
hljs.highlightBlock(block);
hljs.lineNumbersBlock(block);

Loading…
Cancel
Save