HTML Node

Extract data from HTML using CSS selectors, or generate HTML from templates.

Written By pvdyck

Last updated 14 minutes ago

HTML Node

The HTML node extracts data from HTML content using CSS selectors, generates HTML from templates, or converts data to HTML tables.

Operations

OperationDescription
Extract HTML ContentParse HTML and extract data using CSS selectors
Generate HTML TemplateCreate HTML output from a template string with variable placeholders
Convert to HTML TableTransform item data into an HTML table

Extract HTML Content Parameters

ParameterDescription
Source DataThe field containing HTML to parse
Extraction ValuesOne or more CSS selectors to target specific elements
CSS SelectorStandard CSS selector (e.g., div.price, a[href], table tr td)
Return ValueWhat to extract: HTML (inner HTML), Text (text content), or Attribute (a specific attribute value)
Return ArrayWhen enabled, returns all matching elements as an array instead of just the first match
AttributeThe attribute name to extract (when Return Value is "Attribute")

Generate HTML Template Parameters

ParameterDescription
HTML TemplateA template string with {{ $json.fieldName }} placeholders that are replaced with item data

Convert to HTML Table Parameters

ParameterDescription
Table StyleStyling options for the generated table
ColumnsWhich fields to include as table columns

Tips

  • Use Extract after an HTTP Request node to scrape data from web pages
  • Use Generate to build email bodies or reports from workflow data
  • CSS selectors follow standard browser syntax -- test them in browser DevTools first

Limitations

  • None. Full support.

Related