Closed samirkape closed 2 years ago
Is there any quick workaround? we have this code running in production
I found a solution to the problem:
input := "New Equip <%= OrganizationName %>"
plushCtx.Set("OrganizationName", "\"'&")
renderedTemplate, err := plush.Render(template, plushCtx)
renderedTemplate = html.UnescapeString(renderedTemplate) // this will do the job
fmt.Println(renderedTemplate)
output:
New Equip "'&
output:
New Equip "'&