I'm trying to embed JsonLd into my pages using Twirl, but for some reason the content gets HTMLentities-encoded.
My (twirl template) html looks like this:
@(jsonLd: String)(implicit config: play.api.Configuration)
@main() {
<script type="application/ld+json">
@jsonLd
</script>
}
But when I look in the web browser I see something like: {"@type":"DataRecord","@context"... etc.
How can I prevent @jsonLd from getting encoded??