[plt-scheme] HTML escaping questions

From: Terrence Brannon (metaperl at urth.org)
Date: Mon Feb 23 16:26:09 EST 2004

Thanks to Dougo, I got the XML library loaded. I have a coupla questions:

1/ Given these two values for text and banner:

(define text "pretty & red")
(define banner "\"here is the banner\"")

(empty-tag-shorthand html-empty-tags)
(write-xml/content (xexpr->xml `(html (head (title ,banner))
                      (body ((bgcolor "white"))

The ampersand is converted to an XML entity but the quotation marks are not

2/ I have some files of javascript that I need to place in a website. 
How do I create an X-expr that does not atttempt any HTML escaping on 
its input string?

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

Posted on the users mailing list.