diff --git a/selectize-plugin-a11y.js b/selectize-plugin-a11y.js index 8855dea..e3cd799 100644 --- a/selectize-plugin-a11y.js +++ b/selectize-plugin-a11y.js @@ -25,8 +25,9 @@ Selectize.define("selectize-plugin-a11y", function (options) { self.accessibility.liveRegion = { $region: "", speak: function (msg) { - var $msg = $("
" + escape(msg) + "
"); - this.$region.html($msg); + var $container = $("
"); + $container.text(msg); + this.$region.html($container); }, domListener: function () { var observer = new MutationObserver(function (mutations) {