HTML to Telegram Entities (Stage)
AI-generatedSummary
Convert HTML to Telegram plain text and MessageEntity list, optionally merging or replacing the item
Inputs
- htmlSource — Where to read HTML from (parameter expression or input field)
- html — HTML string to convert (e.g. bold, link,
code) - inputField — JSON key containing HTML when htmlSource is "input" (e.g. html, body)
- outputMode — Whether to replace the item with {text,entities} or merge them into existing data
Output shape
array of items each containing text (plain text) and entities (Telegram MessageEntity array); when outputMode is "replace" the item is replaced with this object, otherwise the fields are merged
The node always returns an array wrapping the processed items; each processed item includes the converted text and its entity list
Examples
Example 1: Convert an HTML snippet from a parameter and merge the result into the current item
htmlSource=parameter, html={{ $json.html }}, outputMode=merge
Example 2: Read HTML from a field named "body" and replace the item with plain text and entities
htmlSource=input, inputField=body, outputMode=replace