html/template

Package template (html/template) implements data-driven templates for generating HTML output safe against code injection.

Index

Functions

func HTMLEscapeString

1func HTMLEscapeString(s string) string

HTMLEscapeString returns the escaped HTML equivalent of the plain text data s.

func New

1func New(name string) *Template

New allocates a new HTML template with the given name.


© Matthias Hochgatterer – MastodonGithubRésumé