jekyll / jekyll-feed

:memo: A Jekyll plugin to generate an Atom (RSS-like) feed of your Jekyll posts
MIT License
827 stars 201 forks source link

Switched xml_escape for <![CDATA[]]> for post content #332

Closed michaelnordmeyer closed 2 years ago

michaelnordmeyer commented 3 years ago

See "Handling Atom Text and Content Constructs" (http://www.xml.com/pub/a/2005/12/07/handling-atom-text-and-content-constructs.html) for an explanation why this is valid and the recommended way of handling unescaped content in XML documents.

TL;DR: Much nicer to read if you for some reason have a look at the feed.xml source. Also less parsing on the client-side.

michaelnordmeyer commented 2 years ago

I found just one failed test and fixed it.

parkr commented 2 years ago

@jekyllbot: merge +fix