mitydigital / statamic-feedamic

An Atom and RSS feed for Statamic 3, 4 and 5
https://docs.mity.com.au/feedamic
8 stars 9 forks source link

The {!! '<?xml version="1.0" encoding="utf-8"?>' !!} is not helping #3

Closed Schwenniii closed 3 years ago

Schwenniii commented 3 years ago

Sorry but the fix {!! '<?xml version="1.0" encoding="utf-8"?>' !!} is not helping

use {!! '<'.'?xml version="1.0"?>' !!} that fix the Bug

martyf commented 3 years ago

Can you please provide more information?

We've just tested output with short_tags enabled, and there are no issues.

Schwenniii commented 3 years ago

i get with the fix the same error as described here https://github.com/mitydigital/statamic-rss-feed/issues/2

if i modify your fix like above the error goes away

martyf commented 3 years ago

Please update to v.1.4.2

The XML header is now completely removed from the template, and is added as part of the controller. This has been done after doing some reading on others' experiences with issues with XML in blade templates.