Explorar el Código

fixed markup escaping. fixes #290

Igor Vaynberg hace 13 años
padre
commit
b422d4efef
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;
         }