Skip to content

Commit b422d4e

Browse files
committed
fixed markup escaping. fixes select2#290
1 parent bef4af9 commit b422d4e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

select2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494

9595
function escapeMarkup(markup) {
9696
if (markup && typeof(markup) === "string") {
97-
return markup.replace("&", "&");
97+
return markup.replace(/&/g, "&");
9898
} else {
9999
return markup;
100100
}

0 commit comments

Comments
 (0)