diff --git a/onionr/static-data/www/ui/dist/js/timeline.js b/onionr/static-data/www/ui/dist/js/timeline.js index c09525e7..0dbd634a 100644 --- a/onionr/static-data/www/ui/dist/js/timeline.js +++ b/onionr/static-data/www/ui/dist/js/timeline.js @@ -1,4 +1,3 @@ - /* just for testing rn */ Block.getBlocks({'type' : 'onionr-post', 'signed' : true, 'reverse' : true}, function(data) { for(var i = 0; i < data.length; i++) { @@ -24,5 +23,5 @@ Block.getBlocks({'type' : 'onionr-post', 'signed' : true, 'reverse' : true}, fun }); function viewProfile(id, name) { - document.getElementById("onionr-profile-username").innerHTML = encodeHTML(decodeURIComponent(name)); + document.getElementById("onionr-profile-username").innerHTML = Sanitize.html(decodeURIComponent(name)); } diff --git a/onionr/static-data/www/ui/src/js/timeline.js b/onionr/static-data/www/ui/src/js/timeline.js index c09525e7..763fc7d0 100644 --- a/onionr/static-data/www/ui/src/js/timeline.js +++ b/onionr/static-data/www/ui/src/js/timeline.js @@ -24,5 +24,5 @@ Block.getBlocks({'type' : 'onionr-post', 'signed' : true, 'reverse' : true}, fun }); function viewProfile(id, name) { - document.getElementById("onionr-profile-username").innerHTML = encodeHTML(decodeURIComponent(name)); + document.getElementById("onionr-profile-username").innerHTML = Sanitize.html(decodeURIComponent(name)); }