mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Sanitize artists and tracks in search results, GH-167
This commit is contained in:
parent
db8389e6c1
commit
9eaeffca7e
@ -68,7 +68,7 @@ function searchresult() {
|
||||
var node = oneresult.cloneNode(true);
|
||||
node.setAttribute("onclick","goto('" + link + "')");
|
||||
node.children[0].style.backgroundImage = "url('" + image + "')";
|
||||
node.children[1].children[0].innerHTML = name;
|
||||
node.children[1].children[0].textContent = name;
|
||||
|
||||
results_artists.appendChild(node);
|
||||
}
|
||||
@ -82,8 +82,8 @@ function searchresult() {
|
||||
var node = oneresult.cloneNode(true);
|
||||
node.setAttribute("onclick","goto('" + link + "')");
|
||||
node.children[0].style.backgroundImage = "url('" + image + "')";
|
||||
node.children[1].children[0].innerHTML = artists;
|
||||
node.children[1].children[2].innerHTML = title;
|
||||
node.children[1].children[0].textContent = artists;
|
||||
node.children[1].children[2].textContent = title;
|
||||
|
||||
results_tracks.appendChild(node);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user