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
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