mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-06 06:07:37 +02:00
Add htmldecode function
This commit is contained in:
@@ -109,6 +109,12 @@ Tomahawk.timestamp = function () {
|
|||||||
return Math.round(new Date() / 1000);
|
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) {
|
Tomahawk.dumpResult = function (result) {
|
||||||
var results = result.results,
|
var results = result.results,
|
||||||
i = 0;
|
i = 0;
|
||||||
|
Reference in New Issue
Block a user