Text - Content to Text
Type identifier:
text:contentToTextCategory: Text Operations
Description
Converts rich content to serialised output. By default it serialises to plain text, and it can optionally serialise to HTML. Any included media is converted to pre-signed URLs for access.
Input Handles
Handle | Data Type | Required | Description |
|---|---|---|---|
|
| Yes | Rich content to serialise |
Input Handle Details
content
- Type:
Content Notes:
- Must be valid content structure
- Supports all content node types
- Invalid content throws error
Output Handles
Handle | Data Type | Description |
|---|---|---|
|
| Serialised text or HTML output |
Output Handle Details
text
- Type:
string Notes:
- Media references include pre-signed URLs
textformat preserves text content and removes formattinghtmlformat preserves content structure as HTML
Configuration Options
Property | Type | Required | Default | Description |
|---|---|---|---|---|
|
| Yes |
| Display label for the node |
|
| No |
| Serialisation output format |
Behaviour
Execution Flow
- Resolves
contentinput handle - Validates content structure
- Pre-signs any media URLs in content
- Serialises content using the selected format (
textorhtml) - Returns text string
Content Serialisation
Default (format: "text")
Content Node | Text Output |
|---|---|
| Text with newlines |
| Heading text with newlines |
| Item text |
| Link text (URL may be included) |
| Pre-signed URL |
| Code text |
Text marks (bold, italic) | Plain text (marks removed) |
HTML (format: "html")
- Preserves structural elements such as headings, lists, tables, and links in HTML form
- Media nodes render as HTML elements with pre-signed source URLs
Error Handling
Scenario | Behaviour |
|---|---|
Invalid content structure | Conversion fails without a text result |
Media URL signing fails | Conversion fails without a text result |
This node has no error output handle.
Examples
Basic Content Conversion
{
"type": "text:contentToText",
"data": {
"label": "Extract Text"
}
}Process Rich Text Field
{
"type": "text:contentToText",
"data": {
"label": "Convert Article Content"
}
}Connect a Record's content field to extract plain text.
Serialise as HTML
{
"type": "text:contentToText",
"data": {
"label": "Convert Article Content",
"format": "html"
}
}This preserves rich formatting and structure in HTML output.
Prepare for Search Index
{
"type": "text:contentToText",
"data": {
"label": "Index Content"
}
}Convert rich content to plain text for full-text search indexing.