Fixed testing mistake
This commit is contained in:
parent
a65c08097e
commit
c0dd741a79
15
select2.js
15
select2.js
@ -2442,16 +2442,15 @@ the specific language governing permissions and limitations under the Apache Lic
|
||||
escapeMarkup: function (markup) {
|
||||
var replace_map = {
|
||||
'\\': '\',
|
||||
'&': '&#amp;',
|
||||
'<': '&#lt;',
|
||||
'>': '&#rt;',
|
||||
'"': '&#quot;',
|
||||
"'": ''',
|
||||
"/": '/'
|
||||
'&': '&',
|
||||
'<': '<',
|
||||
'>': '>',
|
||||
'"': '"',
|
||||
"'": ''',
|
||||
"/": '/'
|
||||
};
|
||||
//'--': '--'
|
||||
|
||||
return String(html).replace(/[&<>"'/\\]/g, function (match) {
|
||||
return String(markup).replace(/[&<>"'/\\]/g, function (match) {
|
||||
return replace_map[match[0]];
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user