Browse Source

fixed markup escaping. fixes #290

Igor Vaynberg 12 years ago
parent
commit
b422d4efef
1 changed files with 1 additions and 1 deletions
  1. 1 1
      select2.js

+ 1 - 1
select2.js

@@ -94,7 +94,7 @@
 
     function escapeMarkup(markup) {
         if (markup && typeof(markup) === "string") {
-            return markup.replace("&", "&");
+            return markup.replace(/&/g, "&");
         } else {
             return markup;
         }