google/safehtml
About
Safe HTML for Go
Web & App DevelopmentMeasured star growth
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalSafe HTML for Go
safehtml provides immutable string-like types that wrap web types such as
HTML, JavaScript and CSS. These wrappers are safe by construction against XSS
and similar web vulnerabilities, and they can only be interpolated in safe ways.
You can read more about our approach to web security in our
whitepaper,
or this OWASP talk.
Additional subpackages provide APIs for managing exceptions to the
safety rules, and a template engine with a syntax and interface that closely
matches html/template. You can refer
to the godoc
for each (sub)package for the API documentation and code examples.
More end-to-end demos are available in example_test.go.
This is not an officially supported Google product.
Explore related projects
Loading…