Skip to content

HTML entity encoding behavior in multiselect dropdown #1373

@phuongvumai

Description

@phuongvumai

I’m experiencing an issue in Fomantic UI multiselect dropdowns version 2.8.4.

When I choose an item from the multiselect dropdown that contains characters such as & (ampersand) or ‘ (single quote), the hidden input value is encoded into a HTML character entity. However, if I select two items which both contain the special characters, in the hidden input value, the first item is encoded as HTML character entity (eg: &) and the second is unencoded. If I continue to select the third item without the special characters, both items are encoded into HTML entities.

Here is my codepen: https://codepen.io/moistyburger/pen/zYGjQBK

However, if I use semantic-ui version 2.4.1, it does not have such behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang/javascriptAnything involving JavaScripttype/bugAny issue which is a bug or PR which fixes a bug

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions