You are here: Re: XML? Does all node contents require HTML special chars (ie. > = >) « PHP Programming Language « IT news, forums, messages
Re: XML? Does all node contents require HTML special chars (ie. > = >)

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 &lt;a&gt;) 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>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация