Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StripTags ¶
StripTags removes all HTML/XML tags from the input string. This function must *only* be used for cosmetic purposes, not to prevent code injections like XSS.
func TruncateHTML ¶
Types ¶
type ImageCandidate ¶
type ImageCandidates ¶
type ImageCandidates []*ImageCandidate
func ParseSrcSetAttribute ¶
func ParseSrcSetAttribute(attributeValue string) (imageCandidates ImageCandidates)
ParseSrcSetAttribute returns the list of image candidates from the set. https://html.spec.whatwg.org/#parse-a-srcset-attribute
func (ImageCandidates) String ¶
func (c ImageCandidates) String() string
Click to show internal directories.
Click to hide internal directories.