bnomei / kirby3-feed

Generate a RSS/JSON-Feed and Sitemap from a Pages-Collection.
https://forum.getkirby.com/t/kirby3-feed-rss-json-sitemap/23574
MIT License
64 stars 7 forks source link

Invalid Characters Causing Error #12

Closed chris-corby closed 5 years ago

chris-corby commented 5 years ago

If the textfield contains an invalid character, an error will be thrown on the feed. ‘Undefined variable: return’ on index.php line 29.

In my case I managed to find that there was <0x0c> hiding at the start of a paragraph.

Is there a way of stripping these out in a feed?

Ideally they wouldn’t exist in text fields at all, but in my case it was invisible and didn’t throw errors in Kirby anywhere else. I think people will assume the error is in this plugin, rather than in an invisible character.