Subject: Re: Printing CDATA from feed as HTML
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Fri, 13 Jun 2008 20:18:24 +0200
|
Joe Fawcett wrote:
I think one thing that needs to be cleared up is "Is the pseudo-markup
in the CDATA section guaranteed to be xhtml as opposed to html?", it
appears to me that it might not be XML so parsing it might fail.
That could be resolved with using doc-available() prior to using doc().
It will return false if the text is not parsable as XML, which gives you
the possibility to gracefully degrade.
Cheers,
-- Abel
| Current Thread |
Joe Fawcett - 13 Jun 2008 11:00:46 -0000
- Joelle Tegwen - 13 Jun 2008 13:39:28 -0000
- Abel Braaksma - 13 Jun 2008 18:18:59 -0000 <=
|
|