Skip to content

[Bug] HTML encoded self closing tags in attribute values leads to the removal of the attribute #761

@AndreVirtimo

Description

@AndreVirtimo

When I use html encoded content in an attribute self closing tags leads to the removal of the whole attribute.

Background & Context

Self closing tags like <br /> or <img /> are usually converted to single tags (<br>,<img>), which is totally fine.

Bug

Input

<p data-qtip="&lt;br/&gt;">foo</p>

Given output

<p>foo</p>

Expected output

<p data-qtip="<br>">foo</p>

Working example with single tag

When I'm using single tags, the output is as expected:

Input

<p data-qtip="&lt;br&gt;">foo</p>

Given output

<p data-qtip="<br>">foo</p>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions