Skip to content

Commit

Permalink
Added auto title HTML decoder
Browse files Browse the repository at this point in the history
As per ctrlcctrlv#518
This should automatically be done by PHP, but for now, here's a dirty fix.
  • Loading branch information
anonfagola committed Aug 14, 2015
1 parent 55e0ec5 commit 8fb60f3
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions js/decode-title.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function decodeEntities(encodedString) {
var textArea = document.createElement('textarea');
textArea.innerHTML = encodedString;
return textArea.value;
}

$("title").text(decodeEntities($("title").text()));

0 comments on commit 8fb60f3

Please sign in to comment.