1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-01-17 22:38:33 +01:00

Add htmldecode function

This commit is contained in:
Anton Romanov 2015-06-17 11:19:42 -07:00
parent 5c2e384d44
commit 84d27aa615

View File

@ -109,6 +109,12 @@ Tomahawk.timestamp = function () {
return Math.round(new Date() / 1000);
};
Tomahawk.htmlDecode = function (encoded) {
var div = document.createElement('div');
div.innerHTML = encoded;
return div.innerText
};
Tomahawk.dumpResult = function (result) {
var results = result.results,
i = 0;