Skip to content

Commit 759fb43

Browse files
committed
Merge pull request select2#1021 from frntz/master
Fix escapeMarkup regexp
2 parents ae4b24a + 78312ce commit 759fb43

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
@@ -2721,7 +2721,7 @@ the specific language governing permissions and limitations under the Apache Lic
27212721
"/": '/'
27222722
};
27232723

2724-
return String(markup).replace(/[&<>"'/\\]/g, function (match) {
2724+
return String(markup).replace(/[&<>"'\/\\]/g, function (match) {
27252725
return replace_map[match[0]];
27262726
});
27272727
},

0 commit comments

Comments
 (0)