Getting #ZgotmplZ for all image src= links, only on one site

Try using printf with safeHTML. I haven’t tested this, but something like:

{{ (printf "<x-%s></x-%s>" (.Get 0) (.Get 0)) | safeHTML }}

Go templates are very context-picky, so your injection in the middle of a tag name may be upsetting things.

4 Likes