DEV Community

Discussion on: Creating JSON Files with Eleventy

Collapse
davidrhoden profile image
David Rhoden

This works quite nicely except the quote marks are getting translated to their HTML equivalents and HTML tags are added, like this:
&quot;title&quot;: &quot;My Post Title&quot;,<br>

Might be related to this Eleventy issue:
github.com/11ty/eleventy/issues/402

Do you know how to make it stop doing that?

Collapse
davidrhoden profile image
David Rhoden

I solved it. i had made the template as a Markdown (.md) file, like the rest of my templates. I changed the suffix to .html and got the output I was looking for.

Collapse
mattwaler profile image
Matt Waler Author

Awesome! I was going to come back to this and help debug because I've never witnessed that same issue. Glad you figured it out and thank you for reading!