Posted by Tim Van Wassenhove on 08/11/05 06:29
On 2005-08-11, bissatch@yahoo.co.uk <bissatch@yahoo.co.uk> wrote:
> This worked a treat but I was kinda hoping that I could keep the html
> tags intact when in the <item> nodes as it is easier, at a glance, to
> recognise the HTML code within the nodes. XML validator doesnt seem to
> mind when there is raw HTML (<a> not <a>) inside nodes so is it
> possible to change the PHP '$node->get_contents' to something that will
> preserve the HTML tags as they are and display them on screen?
Things to look up:
<attribute name='content'>
<![CDATA[
<a href="http://example.com">there you go</a>
]]>
</attribute>
<xsl:value-of select="$content" disable-output-escaping="yes"/>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
--
Met vriendelijke groeten,
Tim Van Wassenhove <http://timvw.madoka.be>
[Back to original message]
|