HTML标签清理器
移除HTML标签,提取干净的文本内容
API 文档
请求端点
POST /zh/api/tools/html-tag-stripper
请求参数
| 参数名 | 类型 | 必填 | 描述 |
|---|---|---|---|
| html | textarea | 是 | - |
| preserveWhitespace | checkbox | 否 | Keep multiple spaces and formatting |
| preserveLineBreaks | checkbox | 否 | Keep paragraph and line break structure |
| decodeEntities | checkbox | 否 | Convert & < > etc. to their characters |
| removeScriptStyle | checkbox | 否 | Completely remove JavaScript and CSS content |
| customKeepTags | text | 否 | Tags to preserve (comma-separated tag names) |
响应格式
{
"result": "Processed text content",
"error": "Error message (optional)",
"message": "Notification message (optional)",
"metadata": {
"key": "value"
}
}
文本:
文本
AI MCP 文档
将此工具添加到您的 MCP 服务器配置中:
{
"mcpServers": {
"elysiatools-html-tag-stripper": {
"name": "html-tag-stripper",
"description": "移除HTML标签,提取干净的文本内容",
"baseUrl": "https://elysiatools.com/mcp/sse?toolId=html-tag-stripper",
"command": "",
"args": [],
"env": {},
"isActive": true,
"type": "sse"
}
}
}
你可以串联多个工具,比如:`https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`,最多20个。
如果遇见问题,请联系我们:[email protected]