Skip to content

Intended BR tags are removed. #481

@pearlscode

Description

@pearlscode

@neilj

The Intended BR tags are getting removed when try to set content using setHTML.

Behavior affected from v2.3.3.

To reproduce the issue, try below code via setHTML
<div style="display: inline;">Line 1<br></div>
<div style="display: inline;">Line 2<br></div>
<div>Line 3</div>
<div>Line 4</div>
<div>Line 5</div>

After set HTML, the result is being without indented BR tags exist after Line 1 and Line 2.
So, output is looks like below,
Image

It should be like below,
Image

Please refer the given screen record:

Screen.Recording.2025-05-22.at.3.30.35.PM.mov

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