<br><div class="gmail_quote">On Thu, Oct 14, 2010 at 2:11 PM, YC <span dir="ltr"><<a href="mailto:yinso.chen@gmail.com">yinso.chen@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div class="gmail_quote"><div class="im"><div><br></div></div><div>This is due to the file being stored as a string in the database and retrieved back out as a string, and strings in xexprs are automatically escaped for HTML markers. </div>
<div><br>
</div><div>To avoid this issue you need to first convert the string into xexpr. You can use the combo of xml and html package to do so (the html package will allow you to handle html fragments that are not well-formed according to xml rules), and then convert it to xexpr. Something like below (sample only - non-working code): </div>
<div><br></div></div></blockquote><div><br></div><div>I forgot to add - if all your fragments are valid xmls, then string->xexpr in xml package will suffice. </div><div><br></div><div>Cheers,</div><div>yc</div><div><br>
</div></div>