mirror of
https://github.com/sb745/NyaaV3.git
synced 2026-01-08 19:55:46 +02:00
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:
parent
e5fa3a4434
commit
03d9228309
1 changed files with 1 additions and 1 deletions
2
nyaa/static/js/bootstrap-select.js
vendored
2
nyaa/static/js/bootstrap-select.js
vendored
|
|
@ -808,7 +808,7 @@
|
||||||
var $tmp = $('<div>').html(title);
|
var $tmp = $('<div>').html(title);
|
||||||
var plainTitle = $tmp.text();
|
var plainTitle = $tmp.text();
|
||||||
this.$button.attr('title', htmlUnescape($.trim(plainTitle)));
|
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');
|
this.$element.trigger('rendered.bs.select');
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue