encode_html
Convert special characters in text to HTML entities to prevent code injection and ensure safe rendering in web pages.
Instructions
Encode HTML entities
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "encode_html"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to HTML encode |