Skip to content

SYSTEM Cited by 1 source

html/template

html/template is Go's HTML-safe templating stdlib package (pkg.go.dev/html/template). Produces HTML output safe from code injection by contextually auto-escaping values. Built on top of text/template — inherits its template syntax and execution engine.

Binary-size implication

Because html/template runs on text/template, it inherits the same method-DCE-disabling reflect.MethodByName call pattern. Datadog's 2026-02-18 fork into pkg/template/ covers both packages.

Seen in

Last updated · 200 distilled / 1,178 read