[racket] How to not escape html entities in xexpr->string ?

From: Jay McCarthy (jay.mccarthy at gmail.com)
Date: Sat Jun 9 00:50:00 EDT 2012

There is no way to mark some strings as "safe". However, you can
include CDATA in an xexpr and the xml library assumes that cdata have
the cdata wrapper--- <![CDATA[....]]>----but you can just lie.

Here is the documentation for CDATA:


Here is the documentation for using it with templates to avoid quoting:



On Fri, Jun 8, 2012 at 10:29 PM, 安龙 <aisk1988 at gmail.com> wrote:
> Hi all,
>     I use xexpr to write template, but i find "xexpr/response" will escape
> html entities like "<" to &lt; . xexpr->string do this thing also, so how to
> mark some strings are "safe" in expr?
>     Best wishes
> --
> aisk
> ____________________
>  Racket Users list:
>  http://lists.racket-lang.org/users

Jay McCarthy <jay at cs.byu.edu>
Assistant Professor / Brigham Young University

"The glory of God is Intelligence" - D&C 93

Posted on the users mailing list.