p:unescape-markup (p:parse)

Given

  For example, with the 'namespace' option set to the XHTML namespace,
  the following input:

  <description>
  &lt;p>This is a chunk.&lt;/p>
  &lt;p>This is a another chunk.&lt;/p>
  </description>

Why does unescaping markup produce this:

  <description>
  <p xmlns="http://www.w3.org/1999/xhtml">This is a chunk.</p>
  <p xmlns="http://www.w3.org/1999/xhtml">This is a another chunk.</p>
  </description>

and not this:

  <description xmlns="http://www.w3.org/1999/xhtml">
  <p>This is a chunk.</p>
  <p>This is a another chunk.</p>
  </description>

                                        Be seeing you,
                                          norm

-- 
Norman Walsh <ndw@nwalsh.com> | Any problem in computer science can be
http://nwalsh.com/            | solved with another layer of
                              | indirection.--David Wheeler

Received on Thursday, 26 April 2007 13:55:41 UTC