UNPKG

n8n-nodes-html-cleaner

Version:
38 lines (37 loc) 1.33 kB
import { IExecuteFunctions, INodeExecutionData, INodeType, INodeTypeDescription } from "n8n-workflow"; export interface ICleanOptions { removeComments: boolean; removeEmptyTags: boolean; removeScripts: boolean; removeStyles: boolean; removeAttributes: boolean; excludedAttributes: string; excludedSelectors: string; excludedTags: string; } export interface ICleanerOutput { html: string | null | undefined; title: string | null | undefined; lang: string | null | undefined; content: string | null | undefined; textContent: string | null | undefined; length: number | null | undefined; excerpt: string | null | undefined; markdown?: string | null | undefined; } export interface ReadabilityArticle { title: string | null | undefined; content: string | null | undefined; textContent: string | null | undefined; length: number | null | undefined; excerpt: string | null | undefined; byline: string | null | undefined; dir: string | null | undefined; siteName: string | null | undefined; lang: string | null | undefined; publishedTime: string | null | undefined; } export declare class HtmlCleaner implements INodeType { description: INodeTypeDescription; execute(this: IExecuteFunctions): Promise<INodeExecutionData[][]>; }