Skip to content

Commit c0dd741

Browse files
committed
Fixed testing mistake
1 parent a65c080 commit c0dd741

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

select2.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2442,16 +2442,15 @@ the specific language governing permissions and limitations under the Apache Lic
24422442
escapeMarkup: function (markup) {
24432443
var replace_map = {
24442444
'\\': '\',
2445-
'&': '&#amp;',
2446-
'<': '&#lt;',
2447-
'>': '&#rt;',
2448-
'"': '&#quot;',
2449-
"'": '&#39;',
2450-
"/": '&#x2F;'
2445+
'&': '&amp;',
2446+
'<': '&lt;',
2447+
'>': '&gt;',
2448+
'"': '&quot;',
2449+
"'": '&apos;',
2450+
"/": '&#47;'
24512451
};
2452-
//'--': '-&#45;'
24532452

2454-
return String(html).replace(/[&<>"'/\\]/g, function (match) {
2453+
return String(markup).replace(/[&<>"'/\\]/g, function (match) {
24552454
return replace_map[match[0]];
24562455
});
24572456

0 commit comments

Comments
 (0)