Skip to content

Empty tags get converted into self-closing tags #679

Description

@hannaeckert

Expected Behavior:

In Antisamy up to and including version 1.7.6, I got this behavior:
Input: <div></div>
Output: <div></div>

Current Behavior

Since Antisamy version 1.7.7, I now get this behavior:
Input: <div></div>
Output: <div/>


This applies to any empty tag within the input, even if nested deep within other tags.
I would like for Antisamy to not change the structure of empty tags when processing the input.


Until this is fixed, my workaround is to stick to version 1.7.6.

Please let me know if you need further information or details on this.

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