I am processing .RawContent
and then rendering it as HTML. Here is a simplified version of what I am doing:
{{ .RawContent | replaceRE "e" "Z" | markdownify | safeHTML }}
Of course the replaceRE is for example purposes, I am doing other complex things there.
However, I assume that I must be skipping some important HTML safety checks here. Is there something like a .sanitizeHTML
function?