Skip to content

Blacklist customization for cleanTree() function #487

@Poldraunic

Description

@Poldraunic

Hi!

We've noticed an issue with emails composed by Outlook. Outlook generates a document that uses both style element and inline styles. Inserting such document into editor (Squire.insertHTML()) will strip it out of style element. This is not desirable because this can significantly affect how email is displayed in the reply chain.

I've tracked it down to this commit (7fc3ab5) and accompanying issue (#95). It's not clear why style elements were stripped at that point. It seems there was no HTML sanitizing - so maybe because of that?

Now Squire runs external HTML through DOMPurify and so maybe its time to lift this restriction? Or at least allow users to configure if they want Squire to keep these tags or not.

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