mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 21:57:41 +02:00
Add htmldecode function
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user