Skip to content

Commit

Permalink
tpl/transform: Make Plainify and ToMath return template.HTML
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bep committed Aug 11, 2024
1 parent 31727be commit 1efcbcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/functions/transform/Plainify.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ keywords: []
action:
aliases: [plainify]
related: []
returnType: string
returnType: template.HTML
signatures: [transform.Plainify INPUT]
aliases: [/functions/plainify]
---
Expand Down

0 comments on commit 1efcbcd

Please sign in to comment.