---
title: "HTML编解码-ghtml"
url: "https://goframe.org/docs/components/encoding-ghtml"
markdown_url: "https://goframe.org/docs/components/encoding-ghtml.md"
locale: "zh-Hans"
version: "2.10.x(Latest)"
section: "组件列表"
category: "组件列表 / 编码解码"
published: "2024-10-21"
updated: "2024-11-11"
description: "在使用GoFrame框架构建的项目中进行HTML编码和解析。通过引入相关包，可以轻松对HTML内容进行处理。文末提供了官方接口文档的链接，进一步帮助开发者理解和使用。"
keywords: ["GoFrame", "GoFrame框架", "HTML编解码", "ghtml", "Go语言", "编码解析", "接口文档", "Web开发", "软件开发", "编程"]
---

# HTML编解码-ghtml

HTML编码解析。

**使用方式**：

```go
import "github.com/gogf/gf/v2/encoding/ghtml"
```

**接口文档**：

[https://pkg.go.dev/github.com/gogf/gf/v2/encoding/ghtml](https://pkg.go.dev/github.com/gogf/gf/v2/encoding/ghtml)
