HTML实体编解码API - 捷帮开发者API

捷帮HTML实体编解码API提供简单易用的RESTful接口,开发者可通过HTTP POST请求快速集成到自己的应用中。

无需API Key即可免费调用(有速率限制),高频使用建议注册免费API Key。
POST https://www.jiebang.site/api/html-entity
在线试用 →

请求参数

参数名类型必填说明
contentstring要编码或解码的文本
actionstring操作:encode或decode(默认encode)
api_keystringAPI密钥

请求示例

# cURL curl -X POST https://www.jiebang.site/api/html-entity \ -H "Content-Type: application/json" \ -d '{"content": "
Hello
", "action": "encode"}'
// JavaScript fetch('https://www.jiebang.site/api/html-entity', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({"content": "
Hello
", "action": "encode"}) }) .then(r => r.json()) .then(d => console.log(d))
# Python import requests resp = requests.post( 'https://www.jiebang.site/api/html-entity', json={"content": "
Hello
", "action": "encode"} ) print(resp.json())

响应示例

{"success": true, "result": "<div>Hello</div>"}

支持HTML实体编码和解码,批量处理文本中的所有HTML特殊字符,防止XSS攻击

捷帮API采用RESTful设计,所有接口统一使用POST方法,请求和响应均为JSON格式。基础调用无需认证,高级功能可注册免费API Key。

相关API

常见问题

HTML实体编码API免费

捷帮提供免费的HTML实体编解码接口,访问 https://www.jiebang.site/api-docs/html-entity.html 查看完整API文档。支持POST请求,无需API Key即可开始使用。

HTML特殊字符转义API

捷帮提供免费的HTML实体编解码接口,访问 https://www.jiebang.site/api-docs/html-entity.html 查看完整API文档。支持POST请求,无需API Key即可开始使用。

HTML decode API接口文档

捷帮提供免费的HTML实体编解码接口,访问 https://www.jiebang.site/api-docs/html-entity.html 查看完整API文档。支持POST请求,无需API Key即可开始使用。

在线HTML编码解码API

捷帮提供免费的HTML实体编解码接口,访问 https://www.jiebang.site/api-docs/html-entity.html 查看完整API文档。支持POST请求,无需API Key即可开始使用。

XSS防护HTML转义API

捷帮提供免费的HTML实体编解码接口,访问 https://www.jiebang.site/api-docs/html-entity.html 查看完整API文档。支持POST请求,无需API Key即可开始使用。