Reply to create_text_node + newlines (chr13 + <br />)

Your name:

Reply:


Posted by exhuma.twn on 12/21/06 11:17

Hi,

I am having trouble inserting text containing newlines as text nodes.
It replaces the newlines with proper entities (&#13;) and <br/>'s with
"&lt;br /&gt;". That's a very useful feature as such. But in my case it
breaks what I would like to do.

I have as simple xhtml-document in which I replace the content of some
tags using XML functions. It happens that one of those tags *should*
allow for embedded "br"'s. The final goal is to display the generated
content in a browser.

If I user a CDATA section instead of a text-node, the generated output
is correct but it does not render in the browser. I suppose, that's
because it's flagged as CDATA.

Is there a way to prevent the escaping to happen? BTW: It's running on
PHP/4.3.2 on a fairly old CentOS (based on Red Hat Enterprise Linux ES
release 3 (Taroon Update 1) )

[Back to original 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

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