Skip to content

v-html: HTML stripped from inline string literals #3324

@chrisvfritz

Description

@chrisvfritz

Here's a repro fiddle. Any HTML within inline string literals seems to be stripped, so that:

<p v-html="'<strong>hello</strong> world'"></p>

will compile to:

<p>hello world</p>

instead of what I would expect:

<p><strong>hello</strong> world</p>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions