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

Allow HTML in option #209

Open
pablodalloglio opened this issue Dec 19, 2024 · 0 comments
Open

Allow HTML in option #209

pablodalloglio opened this issue Dec 19, 2024 · 0 comments

Comments

@pablodalloglio
Copy link

pablodalloglio commented Dec 19, 2024

Could you please create an option to support a label with HTML?

840c840,841
<                     $.trim( select.find('option[value="'+ instance._escapeSelector( selectVals[ key ] ) +'"]').text() )
---
>                     //$.trim( select.find('option[value="'+ instance._escapeSelector( selectVals[ key ] ) +'"]').text() )
>                     $.trim( select.find('option[value="'+ instance._escapeSelector( selectVals[ key ] ) +'"]').text().replace(/<\/?[^>]+(>|$)/g, ""))
842c843
< 
---
>                 
880c881
<             }).text( optionNameText );
---
>             });//.text( optionNameText ); // comment this
900c901,902
< 
---
>             thisOption.append( option.name ); // add this
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant