encode_html
Pack: htmlentities · Endpoint: https://gateway.pipeworx.io/htmlentities/mcp
Encode text to HTML entities. mode “basic” (default) escapes only & < > ” ’; mode “extended” also converts every non-ASCII character to a numeric entity. Keyless, offline.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
text | string | yes | The text to encode. |
mode | string | no | ”basic” (default) or “extended”. |
Example call
Arguments
{
"text": "Hello & welcome to \"my site\""
}
curl
curl -X POST https://gateway.pipeworx.io/htmlentities/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"encode_html","arguments":{"text":"Hello & welcome to \"my site\""}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('encode_html', {
"text": "Hello & welcome to \"my site\""
});
More examples
{
"text": "Café résumé naïve",
"mode": "extended"
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"htmlentities": {
"url": "https://gateway.pipeworx.io/htmlentities/mcp"
}
}
}
See Getting Started for client-specific install steps.