Purpose
Use Extract HTML when you need raw markup for archiving, downstream parsing, audits, or preserving rich snippets.
How it works
- Finds elements by selector or XPath.
- Returns inner HTML by default, or outer HTML when inner HTML is disabled.
- Can save extracted HTML files to a selected folder.
- Can extract from one or multiple matching elements.
Configuration fields
| Field | Required | Default | Description |
|---|---|---|---|
| Element Selector | Yes | - | CSS selector or XPath for the element to capture. |
| Extract from multiple elements | No | false | Capture every matching element. |
| Inner HTML | No | true | Use inner markup instead of the full wrapper element. |
| Save Folder | No | - | Optional folder where HTML files should be written. |
| Filename | No | - | Optional base filename for saved HTML files. |
Output
HTML string, list of HTML strings, and optionally saved HTML files.
Usage notes
- Use inner HTML for widget contents and outer HTML when the wrapper attributes matter.
- Choose a save folder when you want files instead of only run results.
- HTML files are timestamped when written so repeated runs do not overwrite each other unexpectedly.