We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24e28d5 commit 096e24bCopy full SHA for 096e24b
sourcefiles/modern/plugins/bootstrap-select/js/bootstrap-select.js
@@ -722,7 +722,13 @@
722
}
723
724
//strip all html-tags and trim the result
725
- this.$button.attr('title', $.trim(title.replace(/<[^>]*>?/g, '')));
+ var sanitizedTitle = title;
726
+ var prevSanitizedTitle;
727
+ do {
728
+ prevSanitizedTitle = sanitizedTitle;
729
+ sanitizedTitle = sanitizedTitle.replace(/<[^>]*>?/g, '');
730
+ } while (sanitizedTitle !== prevSanitizedTitle);
731
+ this.$button.attr('title', $.trim(sanitizedTitle));
732
this.$button.children('.filter-option').html(title);
733
734
this.$element.trigger('rendered.bs.select');
0 commit comments