Fix for code scanning alert no. 13: DOM text reinterpreted as HTML

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
sb745 2025-12-22 15:42:39 +02:00 committed by GitHub
parent e5fa3a4434
commit 03d9228309
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -808,7 +808,7 @@
var $tmp = $('<div>').html(title);
var plainTitle = $tmp.text();
this.$button.attr('title', htmlUnescape($.trim(plainTitle)));
this.$button.children('.filter-option').html(title);
this.$button.children('.filter-option').text($.trim(plainTitle));
this.$element.trigger('rendered.bs.select');
},