I’ve noticed some templates use a | html function. In the docs, there’s information about the safeHTML, safeHTMLattr, htmlEscape, and htmlUnescape functions but I can’t see any documentation for the html function.
What does html do, and in what way is it different from safeHTML?
There was a reply, but it was deleted, and it may be due to some action of the poster. I’ll ask the mod. If it is unrelated to the answer, I’ll copy and paste here shortly.
Note that this was removed due to that user account being deleted for violating our community standards for different reasons and not due to the content of this particular post.
Returns the escaped HTML equivalent of the textual
representation of its arguments. This function is unavailable
in html/template, with a few exceptions.