Skip to content

HTML entities in attributes are not always decoded for string templates #8805

@jmijn

Description

@jmijn

Version

2.5.17

Reproduction link

https://jsfiddle.net/sf9cg0db/

Steps to reproduce

Try to dynamically load an input field with a value that contains an encoded single quote (') as plain HTML. Normally the input field will display the single quote in the input box. However, Vue shows the ' in the input box.

I tested this with multiple encoded chars, and everything works correctly, except for the single quote. As stated by @HcySunYang, all entities except the 6 he listed have this issue.

What is expected?

A single quote is shown in the input field when loaded async with Vue

What is actually happening?

' is show in the input field when loaded async with Vue

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