Skip to content

Commit

Permalink
Merge pull request #9 from paulyi/master
Browse files Browse the repository at this point in the history
Fix XSS vulnerability
  • Loading branch information
SLMNBJ committed Jul 15, 2019
2 parents fb2b938 + 0cf56ee commit 927d81e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions selectize-plugin-a11y.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ Selectize.define("selectize-plugin-a11y", function (options) {
self.accessibility.liveRegion = {
$region: "",
speak: function (msg) {
var $msg = $("<div>" + escape(msg) + "</div>");
this.$region.html($msg);
var $container = $("<div></div>");
$container.text(msg);
this.$region.html($container);
},
domListener: function () {
var observer = new MutationObserver(function (mutations) {
Expand Down

0 comments on commit 927d81e

Please sign in to comment.