Skip to content

exclude content based on a list of tags, instead of removeStyleAndScriptTags #22

@mariusa

Description

@mariusa

There are a few use cases which aren't covered by the removeStyleAndScriptTags option:

  1. exclude other noise content, eg <svg>
  2. exclude style, but leave scripts
  3. exclude scripts which don't have <script type="application/json">

Would you please consider adding a more generic option, removeTags? Ideally, it would also support attributes, but just tag names would be very useful anyway.

Usage:

const config = {
        removeTags: ['style', 'link', 'script', 'svg']
    }

Thanks

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