-
-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Help authors with invalid feeds containing custom properties #49
Comments
Oop, I just got it after I posted the comment, nevermind! |
Cross referencing this posthtml plugin option for |
I think the secret sauce may lie in Nunjucks escaping of the HTML though:
The above entry works as expected with |
This is the default behavior in the new virtual template method provided in this plugin (#47) |
They exist, indeed! I wonder how RSS readers are treating such escaped HTML, though. |
(a feature request)
I’m generating article feeds using Eleventy, and I constantly have to deal with a problem:
<img>
, you need to wrap the content into<!--[CDATA[ … ]]-->
to get valid XML.var(--color-grey-dark)
, your feed becomes invalid because you can’t have--
inside CDATA since it’s an XML comment.Here’s an example feed with such an error: web-standards.ru/articles/feed
The simplest solution would be to XML-ify your HTML into
<img/>
and remove the CDATA. I learned it from the @zachleat’s feed. Other solutions might also exist.Anyway, I think Eleventy’s feed plugin could also help us with that 😉
The text was updated successfully, but these errors were encountered: