Introduces textNode that renders through go-i18n's T() function with automatic HTML escaping for safe-by-default output. Adds escapeHTML utility, NewContextWithService for explicit service binding, and Entitlements field on Context for upcoming conditional rendering. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
9 lines
213 B
Modula-2
9 lines
213 B
Modula-2
module forge.lthn.ai/core/go-html
|
|
|
|
go 1.25.5
|
|
|
|
replace forge.lthn.ai/core/go-i18n => ../go-i18n
|
|
|
|
require forge.lthn.ai/core/go-i18n v0.0.0-00010101000000-000000000000
|
|
|
|
require golang.org/x/text v0.33.0 // indirect
|