html_encode
Encode special characters to HTML entities, preventing XSS and ensuring correct display in web pages.
Instructions
Encode special characters in a string to 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": {
"input": "<input>"
},
"name": "html_encode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | The string to HTML-encode |