Skip to content
New issue

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

HTML bug #1175

Open
musicman3 opened this issue Jan 26, 2021 · 3 comments
Open

HTML bug #1175

musicman3 opened this issue Jan 26, 2021 · 3 comments

Comments

@musicman3
Copy link

Hey. HTML is not functioning. Error from line 881. I'm showing you how to fix it.

if (this.options.enableHTML) { var $checkboxLabel = $('<label class="form-check-label" />'); $checkboxLabel.html(label); $wrapper.append($checkboxLabel); } else { var $checkboxLabel = $('<label class="form-check-label" />'); $checkboxLabel.text(label); $wrapper.append($checkboxLabel); }

@mcanic
Copy link

mcanic commented Mar 1, 2021

I can conform this fix works, solves a bug in the createCheckbox, where an error occured if strings contain characters (like < or >)

@s-eckard
Copy link
Collaborator

s-eckard commented Mar 5, 2021

The code looks fine and I will integrate it, but when does this lead to an error?

s-eckard added a commit to s-eckard/bootstrap-multiselect that referenced this issue Mar 5, 2021
@mcanic
Copy link

mcanic commented Mar 5, 2021

When does this lead to error if any one or more options contain characters like < or >

d-langstein added a commit to s-eckard/bootstrap-multiselect that referenced this issue Apr 12, 2021
s-eckard added a commit that referenced this issue Apr 12, 2021
#1175: Improve "enableHTML" for options
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants