Skip to content

Possible to disable sanitizing? #425

Closed
@himat

Description

@himat

Hi, according to the w3 specs, you're not allowed to have a <div> inside of a <p>, but I came across a website that had such a case. When I parse it with html5ever, it turns the <p><div></div></p> into <p></p> <div></div> <p></p>.

But for my use case, I need the DOM to be exactly as it was originally without any changes.

Is it possible to disable the sanitization or checker that runs that handles such cases when running so that no fixing is done?

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