Im trying to output an ISO date format but when I want “2024-11-18T00:00:00+00:00” I keep getting “2024-11-18T00:00:00\u002b00:00”, which I think will be a problem.
Example:
<script type="application/ld+json" data-nkda-type="youtube" data-nkda-resourceTypes="video">
{
"@context": "https://schema.org",
"@type": "VideoObject",
"name": "Understanding the Difference: Traditional Management vs. Evidence-Based Management",
"description": "",
"thumbnailUrl": [
"https://i.ytimg.com/vi/3CgKmunwiSQ/maxresdefault.jpg"
],
"uploadDate": "2024-11-18T00:00:00\u002b00:00",
"duration": "PT0H6M35S",
"contentUrl": "https://www.youtube.com/3CgKmunwiSQ",
"embedUrl": "https://www.youtube.com/embed/3CgKmunwiSQ",
}
</script>
I’ve tried:
{{ $.Page.Date.Format "2006-01-02T15:04:05-07:00" }}
- {{ $.Page.Date.Format “2006-01-02T15:04:05-07:00” | safeHTML }}
- {{ $.Page.Date.Format “2006-01-02T15:04:05-07:00” | safeJS }}
Each of these options all result in the same encoded “+”.
Is there a way to get Hugo to output the raw text?