-
Notifications
You must be signed in to change notification settings - Fork 127
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
image caption is always wrapped in CDATA in the output xml #97
Comments
It's not an issue, but a feature from the sitemap.js lib to secure by default your XML content of element, because all HTML entities should be escaped or wrapped in a CDATA block. So your XML still a valid sitemap: https://www.xml-sitemaps.com/validate-xml-sitemap.html?op=validate-xml-sitemap&go=1&sitemapurl=https%3A%2F%2Fpnzlr.sse.codesandbox.io%2Fsitemap.xml&submit=Validate+Sitemap The |
@NicoPennec the more important feature is the v5's streams to be implemented in a way to generate sitemaps without using much memory which is another discussion, so can you explain why we cannot bump to v5 ? |
I think the only issue regarding xslUrl is #58 which only asks to add what's already in sitemap.js, which is not anymore, so I guess we are okay about that ? |
I created #100 pull request on this matter. |
any updates on cdata? i'm facing this cdata in news. my news data are :
but its showing like this in sitemap
|
Version
2.0.1
Reproduction link
https://codesandbox.io/s/epic-chatterjee-pnzlr
Steps to reproduce
use image with a caption in a route
What is expected ?
What is actually happening?
Additional comments?
And i don't know why my sandbox does not even generate the xml file properly anyway.
I tried setting "cdata" to false in sitemap options defaults but it didn't help.
I have tested the route example in the sandbox on my local environment and it got wrapped in cdata
The text was updated successfully, but these errors were encountered: