Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Feature request: Subroutine validators for tags #23

@bschmalhofer

Description

@bschmalhofer

If I understood the module HTML::Scrubber correctly, tags are either allowed or not allowed. This is unlike attributes where a callback may decide whether an attribute is dropped or modified.

In a webapp, that I'm working on, there is a hand rolled sanitizer which can drop a complete tag based on the existence or value of attributes. It would be nice to have such functionality in HTML::Scrubber too. This would allow me to eliminate the hand rolled sanitizer.

This is a bit related to #22.

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