Jérôme Renard wrote:
> Derick, Alexandru good afternoon.
> 
> I am sending you this email regarding the little char I got with Derick 
> yesterday
> about a customer who wants to send HTML in an RSS item by using CDATA 
> sections.
> 
> <![CDATA[<b>xxx</b>]]>;
> 
> I asked him to try with something like this :
> 
> <![CDATA[ &#38;&#60;b&#38;&#62;xxxx&#38;&#60;/b&#38;&#62; ]]>
> 
> But it does not work neither.

Why is this needed? The HTML can be assigned to a feed element like this:

<code>
$feed->description = "<b>some text here</b>";
</code>

instead of this:

<code>
$feed->description = "<![CDATA[ <b>some text here</b> ]]>";
</code>

CDATA is not necessary to include HTML in XML, as HTML content will be 
properly escaped.


-- 
Alexandru Stanoi
eZ Components System Developer
eZ Systems | http://ez.no
-- 
Components mailing list
Components@lists.ez.no
http://lists.ez.no/mailman/listinfo/components

Reply via email to