According to the documentation here: http://www.leapspecs.org/2A/literals#content_or_description
We should not be trying to import <content></content> as HTML (all escaped) but rather as XHTML (not escaped)
eg, instead of this: <content type="html"><p>&nbsp;</p> <p>a paragraph</p> <p>&nbsp;</p></content>
it should be more like this:
<content type="xhtml"> <div xmlns="http://www.w3.org/1999/xhtml"> <p> </p> <p>a paragrapgh</p> <p> </p> </div> </content>
where the containing <div> gets stripped on import
So on import should we take the contents of <content type="html"> unescape it, then run it thru html tidy and import it as xhtml?
According to the documentation here: http:// www.leapspecs. org/2A/ literals# content_ or_description
We should not be trying to import <content></content> as HTML (all escaped) but rather as XHTML (not escaped)
eg, instead of this: ><p& gt;& nbsp;< /p> <p>a paragraph</p> <p> &nbsp; </p& gt</content>
<content type="html"
it should be more like this:
<content type="xhtml"> www.w3. org/1999/ xhtml">
<div xmlns="http://
<p> </p> <p>a paragrapgh</p> <p> </p>
</div>
</content>
where the containing <div> gets stripped on import
So on import should we take the contents of <content type="html"> unescape it, then run it thru html tidy and import it as xhtml?