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 ( ) and <br/>'s with
"<br />". 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]
|