Prevent minifier from removing quoutes around post-processed attributes

Fixes #8884
This commit is contained in:
Bjørn Erik Pedersen
2021-08-19 11:30:50 +02:00
parent ffa2fe6117
commit bc0743ed8e
2 changed files with 12 additions and 1 deletions

View File

@@ -39,7 +39,11 @@ type PostPublishedResource interface {
const (
PostProcessPrefix = "__h_pp_l1"
PostProcessSuffix = "__e"
// The suffix has an '=' in it to prevent the minifier to remove any enclosing
// quoutes around the attribute values.
// See issue #8884.
PostProcessSuffix = "__e="
)
func NewPostPublishResource(id int, r resource.Resource) PostPublishedResource {