Documentation ¶
Overview ¶
Package ghtml provides useful API for HTML content handling.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Entities ¶
Entities encodes all HTML chars for content. Referer: http://php.net/manual/zh/function.htmlentities.php
func EntitiesDecode ¶
EntitiesDecode decodes all HTML chars for content. Referer: http://php.net/manual/zh/function.html-entity-decode.php
func SpecialChars ¶
SpecialChars encodes some special chars for content, these special chars are: "&", "<", ">", `"`, "'". Referer: http://php.net/manual/zh/function.htmlspecialchars.php
func SpecialCharsDecode ¶
SpecialCharsDecode decodes some special chars for content, these special chars are: "&", "<", ">", `"`, "'". Referer: http://php.net/manual/zh/function.htmlspecialchars-decode.php
func SpecialCharsMapOrStruct ¶ added in v1.14.4
func SpecialCharsMapOrStruct(mapOrStruct interface{}) error
SpecialCharsMapOrStruct automatically encodes string values/attributes for map/struct.
func StripTags ¶
StripTags strips HTML tags from content, and returns only text. Referer: http://php.net/manual/zh/function.strip-tags.php
Types ¶
This section is empty.