Is the + supposed to be there? Looks like it is escaped.


For the record, this isn’t anything new (i.e., not a bug in v0.120.0).

Escaping the plus sign to an HTML entity is not a problem; Go’s html/template package is doing this. Test in your browser console; no errors.

Alright. Will explore the printf method

Will explore the printf method

You’ll need to pass it through safeHTMLAttr

<element {{- printf " some-attribute=%q" $value | safeHTMLAttr}}>

Thanks. Do local/same-origin resources really need the integrity check btw?

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.