We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optiongrp labels with encoded html get rendered as html, rather than their the text that should be displayed. <options> themselves work correctly.
optiongrp
<options>
I think this is down to the this.parentNode.label call: https://github.com/silviomoreto/bootstrap-select/blob/master/js/bootstrap-select.js#L587
this.parentNode.label
Is there anyway to avoid this? It makes escaping output impossible with the plugin.
Example: https://jsfiddle.net/0kwes0p0/3/
The text was updated successfully, but these errors were encountered:
Ensure optgroup label is html encoded
f2ebdf3
refs snapappointments#1348
The patch for this
- var label = this.parentNode.label, + var label = $('<div/>').text(this.parentNode.label).html(),
https://github.com/3floorsup/bootstrap-select/commit/f2ebdf3909c66aea98a3c0bff3e78b5b1e93c255.patch
Sorry, something went wrong.
b4952d0
c443a2b
escape optgroup label (fix snapappointments#1348)
9d3a675
No branches or pull requests
optiongrp
labels with encoded html get rendered as html, rather than their the text that should be displayed.<options>
themselves work correctly.I think this is down to the
this.parentNode.label
call: https://github.com/silviomoreto/bootstrap-select/blob/master/js/bootstrap-select.js#L587Is there anyway to avoid this? It makes escaping output impossible with the plugin.
Example: https://jsfiddle.net/0kwes0p0/3/
The text was updated successfully, but these errors were encountered: