ComfyUI Node
Text Truncate Protect
Truncates text to a character limit with protection options for words, paragraphs, and enclosures.
Text Truncate Protect
- truncated_text
- statistics
- final_length
- truncated_chars
◄text►
◄character_limit500►
◄threshold50►
◄protect_wordsfalse►
◄protect_paragraphsfalse►
◄protect_enclosuresfalse►
◄enclosure_typesall►
Categoryillumorae
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — | |
| character_limit | INT | 5001–100000 | — |
| threshold | INT | 500–1000 | — |
| protect_wordsopt | BOOLEAN | false | — |
| protect_paragraphsopt | BOOLEAN | false | — |
| protect_enclosuresopt | BOOLEAN | false | — |
| enclosure_typesopt | COMBO | all | 5 options: all, parentheses, braces, brackets, angle_brackets |
Outputs (4)
| Name | Type | Description |
|---|---|---|
| truncated_text | STRING | — |
| statistics | STRING | — |
| final_length | INT | — |
| truncated_chars | INT | — |