[racket] How to interpret the html code from an input field ?

From: YC (yinso.chen at gmail.com)
Date: Thu Oct 14 17:14:50 EDT 2010

On Thu, Oct 14, 2010 at 2:11 PM, YC <yinso.chen at 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.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20101014/a558fec4/attachment.html>

Posted on the users mailing list.