noescape

command
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Noescape shows how to suppress html/template auto-escaping behavior for fields that contain trusted HTML data. (The same can be done for trusted JavaScript, CSS and URLs.) Taken from gopl.io ch4.6 Text and HTML templates.

Level: intermediate Topics: html/template, constants, security

Jump to

Keyboard shortcuts

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