So the problem with using `JSON.stringify` here is that the result is then wrapped in quotes, which breaks our HTML by having the first quote close the `style` attribute value. I suppose I'll just write a separate filter that would handle that by removing the wrapping quotes (or using an escaping function like you linked to). But if you have a better idea then I'm all ears.