PHP_EOL only added after <![CDATA[

In the old situation tags could look like this:
<tag>
content</tag>

instead of
<tag>content</tag>

The old behavior can cause problems in tools like mailchimp when you print the link or guid into an href. PHP_EOL is then translated to a space, making the link invalid.