encode_html

Pack: htmlentities · Connect: https://pipeworx.io/mcp (see Connect below for a single-pack URL)

No MCP client? Call it directly: GET https://gateway.pipeworx.io/v1/tools/encode_html for the schema, then POST the same URL with its arguments for the data.

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

NameTypeRequiredDescription
textstringyesThe text to encode.
modestringno”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 — every tool in the catalog, including this one — or use one-click install buttons:

{
  "mcpServers": {
    "pipeworx": {
      "url": "https://pipeworx.io/mcp"
    }
  }
}
Connect to just the htmlentities pack
{
  "mcpServers": {
    "htmlentities": {
      "url": "https://gateway.pipeworx.io/htmlentities/mcp"
    }
  }
}

See Getting Started for client-specific install steps.

Regenerated from source · build September 29, 2026