Re: PHP and XML->allowing (X)HTML

From: Date: Sun, 27 Apr 2003 05:28:40 +0000
Subject: Re: PHP and XML->allowing (X)HTML
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-145398@lists.php.net to get a copy of this message
That is what is suppose to happen. Your xslt sheet is handling the data properly because u are passing style tags to the xslt sheet via the xml file. You should not have any presentation tags in xml data (ie: <br/> or any other tag). -- Ray On Sat, 2003-04-26 at 15:08, Davy Obdam wrote: > Helloo People, > > I am currently working on a XML driven website with PHP. I have a slight > annoying problem though... > I want my users of the content managment to be able to use some XHTML > tags in thier text, and i want to use the nl2br() function so that every > \n is converted to <br />. This seems to work, cos in my database i do > see those <br /> tags. When i get the articel from the database and > build XML, then use XSLT to convert the output i get <br /> tags > displayed in my text ( &lt;br /&gt; in my HTML source ).. this drives > me nutty, i hope someone can help me with this, Thanks in advance... > > Best regards, > > Davy Obdam > >

« previous php.general (#145398) next »