Ligantic
Knowledge Base
Tutorials
Updates
Search Articles
Login
Free Sign Up
Home
Get Started
Tutorials
How-to guides
Reference
Explanation
Spaces
Schemas
Flows
Experiences
Endpoints
SDK and CLI
Browse documentation
Home
Get Started
Spaces
Schemas
Flows
Experiences
Endpoints
SDK and CLI
Docs
/

Text - Content to Text

Type identifier: text:contentToText Category: 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

content

Content

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

text

string

Serialised text or HTML output

Output Handle Details

text

  • Type: string
  • Notes:

    • Media references include pre-signed URLs
    • text format preserves text content and removes formatting
    • html format preserves content structure as HTML

Configuration Options

Property

Type

Required

Default

Description

label

string

Yes

"Text - Content to Text"

Display label for the node

format

"text" | "html"

No

"text"

Serialisation output format

Behaviour

Execution Flow

  1. Resolves content input handle
  2. Validates content structure
  3. Pre-signs any media URLs in content
  4. Serialises content using the selected format (text or html)
  5. Returns text string

Content Serialisation

Default (format: "text")

Content Node

Text Output

paragraph

Text with newlines

heading

Heading text with newlines

list-item

Item text

link

Link text (URL may be included)

image

Pre-signed URL

code-block

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.

Related pages

Text - Parse HTML to Content
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.
Page not found. It may have moved or may not be published.
Browse documentation