1
0
mirror of synced 2024-11-25 22:36:03 +03:00
select2/dist/js
Kevin Brown 0da15aa586 Fixed option text encoding
This fixes an issue when using a `<select>` where the elements were
created with XHTML-encoded characters to prevent any injection, as
they would be double-encoded and display incorrectly.

When using a `<select>`, we can assume that the data has already
been encoded because any XSS will have already run before we get to
it.  Because of this, we can just use `.text()` instead of `.html()`
to avoid any issues.

This also includes a test to ensure that this does not become an
issue in the future.

This closes https://github.com/select2/select2/issues/3115.
2015-03-11 18:12:14 -04:00
..
i18n Merge pull request #3099 from yoonsy/master 2015-03-06 20:01:09 -05:00
select2.amd.full.js Fixed option text encoding 2015-03-11 18:12:14 -04:00
select2.amd.js Fixed option text encoding 2015-03-11 18:12:14 -04:00
select2.full.js Fixed option text encoding 2015-03-11 18:12:14 -04:00
select2.full.min.js Fixed option text encoding 2015-03-11 18:12:14 -04:00
select2.js Fixed option text encoding 2015-03-11 18:12:14 -04:00
select2.min.js Fixed option text encoding 2015-03-11 18:12:14 -04:00