Bug with parsing Hugo's safeHTMLAttr
gcushen opened this issue · comments
Geo commented
Problem
<link rel="preload" as="style" {{ printf "href=\"https://fonts.googleapis.com/css2?%s&display=swap\"" . | safeHTMLAttr }}>
is converted to
<link rel="preload" as="style" <!--BPGT<!--BPGT<!--BPGTBPGT119EPGTEPGT-- />EPGT-- />EPGT-- /> />
Docs: https://gohugo.io/functions/safehtmlattr/
Note #24 reports a similar but different issue (it's unrelated to safeHTMLAttr
). Perhaps when #24 is resolved, it might also resolve this one though.
Version: 0.0.10