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.
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.