Re: PHP and XML->allowing (X)HTML
| From: | Davy Obdam | Date: | Sun, 27 Apr 2003 11:27:33 +0000 |
| Subject: | Re: PHP and XML->allowing (X)HTML | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145408@lists.php.net to get a copy of this message | ||
Hi Ray,
I would like to have th user of the content management systeem to have some control over ther appearce of the articels, thats why i was thinking of allowing some simple xhtml tags in my database, but that doesnt work :-(
Do u know a sollution, Thanks already,
Best regards,
Davy
Ray Hunter wrote:
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 ( <br /> in my HTML source ).. this drives me nutty, i hope someone can help me with this, Thanks in advance... Best regards, Davy Obdam