escape_html
Escape HTML special characters (&, <, >, ", ') to their safe HTML entities. ALWAYS call this before inserting any user-provided or LLM-generated content into an HTML template to prevent cross-site scripting (XSS) attacks.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | String to HTML-escape |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| escaped | No | ||
| original_length | No |