On Thu, Oct 14, 2010 at 2:11 PM, YC <yinso.c...@gmail.com> wrote:

>
> 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.
>
> 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):
>
>
I forgot to add - if all your fragments are valid xmls, then string->xexpr
in xml package will suffice.

Cheers,
yc
_________________________________________________
  For list-related administrative tasks:
  http://lists.racket-lang.org/listinfo/users

Reply via email to