diff --git a/index.html b/index.html
index 7c9b950..5bf9f6a 100644
--- a/index.html
+++ b/index.html
@@ -279,6 +279,9 @@
onCallback:function(){
var location = $location.val();
if(location){
+ location = location.replace(/[&<>"']/g,function(c){
+ return {'&':'&','<':'<','>':'>','"':'"',"'":'''}[c];
+ });
result = searchItem.query(location);
if(result.length>10){
result = 10;