分类

HTML标签清除

从HTML代码中移除标签并提取纯文本内容

此工具提供多种处理HTML的模式: **模式:** - **strip**: 简单移除所有HTML标签,仅保留文本内容 - **extract**: 提取文本内容并保持可读性 - **clean**: 移除标签以及脚本、样式和注释 **功能特性:** - 处理自闭合标签(br、img、input等) - 解码HTML实体( 、<、>、&等) - 保留结构格式(可选) - 移除多余空行 - 提供移除标签的详细统计信息

API 文档

请求端点

POST /zh/api/tools/new-html-tag-stripper

请求参数

参数名 类型 必填 描述
html textarea -
mode select -
removeEmptyLines checkbox -
decodeEntities checkbox -
preserveStructure checkbox -

响应格式

{
  "key": {...},
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
JSON数据: JSON数据

AI MCP 文档

将此工具添加到您的 MCP 服务器配置中:

{
  "mcpServers": {
    "elysiatools-new-html-tag-stripper": {
      "name": "new-html-tag-stripper",
      "description": "从HTML代码中移除标签并提取纯文本内容",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=new-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]