]> git.maquefel.me Git - brevno-suite/hugo/commit
tpl/transform: Make Plainify and ToMath return template.HTML
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 11 Aug 2024 10:48:30 +0000 (12:48 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Sun, 11 Aug 2024 13:16:16 +0000 (15:16 +0200)
commit946e6af0bb662861c954ccff60b2861aa5e1166e
treef94d768ed1cb797a7c13d8c5661c560fb91873b7
parent5d84f64759aa99fd45737b4efcd7ef889486a114
tpl/transform: Make Plainify and ToMath return template.HTML

None of these are useful as plain strings in the templates, which forces the users to do `transform.Plainify "foo" | safeHTML`.

If people have trust issues with the output of these functions, they need to just stop using them.

Closes #8732
docs/content/en/functions/transform/Plainify.md
tpl/transform/transform.go
tpl/transform/transform_integration_test.go
tpl/transform/transform_test.go