Skip to content

TypeError: Cannot read property 'filter' of undefined #2

@cparello

Description

@cparello

const doc = IDOMParser.parse(html, {
ignoreTags: ['script', 'style', 'head'],
onlyBody: true,
});

this is the output i get. when i run this on some html. It works fine on other html

LOG Found onlyBody executing <(body)(.?)>(.|
)
?</(body)>
LOG Found ignoreTags executing (<(script|style|head)(.?)>(.|
)
?</(script|style|head)>)|(<(script|style|head)(.*?)/>)
WARN Possible Unhandled Promise Rejection (id: 2):
TypeError: Cannot read property 'filter' of undefined

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