hstring

package
v0.136.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 2 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTML added in v0.134.0

type HTML string

HTML is a string that represents rendered HTML. When printed in templates it will be rendered as template.HTML and considered safe so no need to pipe it into `safeHTML`. This type was introduced as a wasy to prevent a common case of inifinite recursion in the template rendering when the `linkify` option is enabled with a common (wrong) construct like `{{ .Text | .Page.RenderString }}` in a hook template.

func (HTML) PrintableValue added in v0.134.0

func (s HTML) PrintableValue() any

func (HTML) String added in v0.134.0

func (s HTML) String() string

Jump to

Keyboard shortcuts

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