html类

package
v0.0.0-...-7e18bce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 4, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

包ghtml提供了处理HTML内容的有用API。 md5:218d4666a789e8d7

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func X删除HTML标记

func X删除HTML标记(html文本 string) string

X删除HTML标记 从内容中移除HTML标签,只返回纯文本。参考:http://php.net/manual/zh/function.strip-tags.php md5:a4340113401e2abd

func X编码

func X编码(html文本 string) string

X编码 函数对内容中的所有HTML字符进行编码。 参考链接:http://php.net/manual/zh/function.htmlentities.php md5:5ef66bc1e4751683

func X编码Map

func X编码Map(map或Struct interface{}) error

X编码Map 会自动对映射/结构体中的字符串值/属性进行编码。 md5:a26c73e35955b542

func X编码特殊字符

func X编码特殊字符(文本 string) string

X编码特殊字符 用于对内容进行编码,特别字符包括: "&", "<", ">", `"`, "'". 参考:http://php.net/manual/zh/function.htmlspecialchars.php md5:bd5792c08196b110

func X解码

func X解码(文本 string) string

X解码 解码内容中的所有HTML字符实体。 参考:http://php.net/manual/zh/function.html-entity-decode.php md5:0c31df1bae7c4cff

func X解码特殊字符

func X解码特殊字符(文本 string) string

X解码特殊字符 用于解码内容中的一些特殊字符,这些特殊字符包括: "&", "<", ">", `"`, "'". 参考:http://php.net/manual/zh/function.htmlspecialchars-decode.php md5:839437a4221bd761

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL