I am using a feed creator (specifically, Kohana's feed::create()), except some of my text might be like this in the description element
See code below
<?php echo 'example'; ?>
The feed creator is using the SimpleXML Library. Whenever the data is returned (using $xml->asXml()
) the html angle brackets inside the description element are converted to HTML entities.
This makes the tags be parsed correctly, useful for p tags and the like. However, in this case - the PHP code won't show up (being surrounded by angle brackets).
My question is - how can I show stuff like this in a RSS feed? How can I display >
when it itself is parsed back as <
? Does that make sense?
Here is an example of what is being outputted:
<description><p>some content</p>
<p>WITH some code</p><p><?php
//test me out!
?></p>
</description>
(note that is not an error above - the entities are all converted)
What I'd like it to display (in a RSS reader) is
some content
WITH some code
<?php
//test me out! ?>