Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tpl/transform: Make Plainify and ToMath return template.HTML #12744

Merged
merged 1 commit into from
Aug 11, 2024

Conversation

bep
Copy link
Member

@bep bep commented Aug 11, 2024

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

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 gohugoio#8732
@bep bep merged commit 946e6af into gohugoio:master Aug 11, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

transform.Plainify should return template.HTML instead of a string
1 participant