summaryrefslogtreecommitdiffstats
path: root/static/script.js
diff options
context:
space:
mode:
authorraylu <raylu@mixpanel.com>2011-08-06 14:54:03 -0700
committerraylu <raylu@mixpanel.com>2011-08-06 14:54:03 -0700
commit082514b9ed2071f21e75a735830741d3f319cf50 (patch)
tree0041fcc97118291145f7cb3ce3fa5ed5d500d24c /static/script.js
parent37867e1a046ccce45d7fd25e7034d6c061167457 (diff)
downloadaudioaxis-082514b9ed2071f21e75a735830741d3f319cf50.tar.xz
escape search results
Diffstat (limited to 'static/script.js')
-rw-r--r--static/script.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/static/script.js b/static/script.js
index 81d7fc5..d4e24ab 100644
--- a/static/script.js
+++ b/static/script.js
@@ -125,7 +125,7 @@ function search(query) {
var title = entries[i].title.$t;
var id = entries[i].media$group.yt$videoid.$t;
var html = '<li id="r_' + id + '">';
- html += '<a href="javascript:add(\'' + id + '\', \'' + title + '\')">';
+ html += '<a href="javascript:add(\'' + id + '\', \'' + escape(title) + '\')">';
html += '<img src="http://i.ytimg.com/vi/' + id + '/1.jpg" alt="' + id + '">';
html += title;
html += '</a></li>';