html

package
v1.6.9 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Entities

func Entities(s string) string

Entities 本函数各方面都和SpecialChars一样, 除了Entities会转换所有具有 HTML 实体的字符。 参考:http://php.net/manual/zh/function.htmlentities.php

func EntitiesDecode

func EntitiesDecode(s string) string

EntitiesDecode 的相反操作 参考:http://php.net/manual/zh/function.html-entity-decode.php

func SpecialChars

func SpecialChars(s string) string

SpecialChars 将html中的部分特殊标签转换为html转义标签 参考:http://php.net/manual/zh/function.htmlspecialchars.php

func SpecialCharsDecode

func SpecialCharsDecode(s string) string

SpecialCharsDecode 将html部分转义标签还原为html特殊标签 参考:http://php.net/manual/zh/function.htmlspecialchars-decode.php

func StripTags

func StripTags(s string) string

StripTags 过滤掉HTML标签,只返回text内容 参考:http://php.net/manual/zh/function.strip-tags.php

Types

This section is empty.

Jump to

Keyboard shortcuts

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