forked from select2/select2
-
Notifications
You must be signed in to change notification settings - Fork 28
Version 1.07 breaks templating with HTML #39
Copy link
Copy link
Open
Description
This change in Version 1.07
var formatted = this.display(selection, $rendered);
to
var formatted = Utils.entityDecode(this.display(selection, $rendered));
strips any HTML from the rendered selected item.
This stops you from being able to use html for styling of the selected item, via templating as per the documentation for select2:
https://select2.org/selections.
For this reason I have had to dequeue selectWoo in Wordpress and load select2 itself.
Sorry for lack of example - but it is self-evident.
How big a security issue is the un-escaped HTML?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels