Skip to content

Version 1.07 breaks templating with HTML #39

Open
@njwgh

Description

@njwgh

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions