I want to use variable in this HTML block:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Product",
"url": "{{ .Site.BaseURL }}",
}
</script>
However, it gets converted into this:
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Product",
"url": "http:\/\/localhost:1313\/",
}
</script>
How to remove unwanted backslashes? I tried {{ .Site.BaseURL | safeHTML }}
, {{ replace .Site.BaseURL "\\/" "/" | safeHTML }}
, but nothing worked