HTML to Telegram Entities icon

HTML to Telegram Entities

Converts HTML to plain text and Telegram MessageEntity array for sendMessage/caption

HTML to Telegram Entities

AI-generated

Summary

Converts HTML from a parameter or input JSON field into plain text and Telegram MessageEntity objects for use with sendMessage or captions. Adds the results to each item or replaces its JSON, according to the selected output mode.

Inputs

  • HTML Source (required) — Choose an HTML parameter (default expression reads the first truthy value among html, body, content, or text) or an input field (default key: html).
  • HTML — HTML string to convert when HTML Source is set to parameter.
  • Input Field Name — JSON key to read when HTML Source is set to input. Non-string values are converted to strings; missing or null values become an empty string.
  • Output (required) — Choose whether to merge text and entities into each existing item (default) or replace its JSON with {"text", "entities"}.

Output shape

One output item per input item, each containing text and entities.

The text is decoded from supported HTML entities and tags; entities include supported formatting, spoiler, link, and preformatted-code tags. The source does not validate malformed HTML or guarantee support for other tags. Each output item retains its input-item pairing.

Links

Discussion