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:
parent
5c2e384d44
commit
84d27aa615
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user