feat(HTML Extract Node): Better text extraction, option to specify selectors to skip, option to clean up text data (#8586)

This commit is contained in:
Michael Kret
2024-02-12 12:52:51 +02:00
committed by GitHub
parent 510bf8905d
commit 32281d12d7
8 changed files with 555 additions and 12 deletions

View File

@@ -270,7 +270,7 @@ export class HtmlExtract implements INodeType {
// An array should be returned so iterate over one
// value at a time
newItem.json[valueData.key] = [];
htmlElement.each((i, el) => {
htmlElement.each((_, el) => {
(newItem.json[valueData.key] as Array<string | undefined>).push(
getValue($(el), valueData, options),
);