Type identifier:
text:parseHTMLToContentCategory: Text Operations
Parses HTML string into rich content. Converts HTML elements into structured content nodes including paragraphs, headings, lists, links, and more. Optionally resolves relative URLs in the content.
Handle | Data Type | Required | Description |
|---|---|---|---|
|
| Yes | HTML string to parse |
|
| No | Base URL for relative link resolution |
htmlstringNotes:
resolveURLstringNotes:
Handle | Data Type | Description |
|---|---|---|
|
| Parsed rich content |
|
| Triggered on parsing error |
contentContentNotes:
Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
| Yes |
| Display label for the node |
|
| No |
| Relative link resolution config |
urlForRelativeLinksdynamic and optional urlVariants:
null: No relative link resolution{ dynamic: true }: Use resolveURL input handle{ dynamic: false, url: "https://..." }: Use static base URLhref and src attributeshtml input handleHTML Element | Content Node Type |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
| Bold text |
| Italic text |
| Code text |
Scenario | Behaviour |
|---|---|
No HTML provided | Throws error, triggers |
Invalid HTML (not string) | Throws error, triggers |
Parse failure | Triggers |
{
"type": "text:parseHTMLToContent",
"data": {
"label": "Parse Article HTML"
}
}{
"type": "text:parseHTMLToContent",
"data": {
"label": "Parse with Base URL",
"urlForRelativeLinks": {
"dynamic": false,
"url": "https://example.com"
}
}
}{
"type": "text:parseHTMLToContent",
"data": {
"label": "Parse from Source",
"urlForRelativeLinks": {
"dynamic": true
}
}
}Connect the source page URL to the resolveURL input handle.