[xml] Quoting of carriage return characters in libxml2/libxslt output



I've found that libxml2/libxslt will quote carriage return characters
in output is 
. When outputting (X)HTML this causes rendering
errors on at least Firefox, as the html:
"<pre>Line1&#13;\nLine2</pre>" is rendered differently to the html
"<pre>Line1\r\nLine2</pre>".

This is a problem because some of our page content originates from
browser text areas, and as such the text is submitted to the server
with CRLF line endings. We use libxslt in front of several systems,
not all of which we control. It's not really practical to change the
application behaviour here.

Is it possible to switch off this quoting behaviour on serialization?

Laurence



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]