<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE></TITLE>
<META http-equiv=Content-Type content=text/html;charset=ISO-8859-1>
<META content="MSHTML 6.00.2800.1400" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY text=#000000 bgColor=#ffffff>
<DIV><FONT face="Courier New" size=2>For your javascript problem, with XML, you
would have to use <![CDATA[ - unescaped string - ]]> for it to be correct.
I wonder if there is a scheme equivalent (cdata str) or some such.</FONT></DIV>
<DIV><BR>ifconfig<BR>BAGOS<BR><A
href="http://bagos.sourceforge.net">http://bagos.sourceforge.net</A></DIV>
<DIV> </DIV>
<DIV> </DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=metaperl@urth.org href="mailto:metaperl@urth.org">Terrence
Brannon</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=plt-scheme@list.cs.brown.edu
href="mailto:plt-scheme@list.cs.brown.edu">PLT Scheme</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Monday, February 23, 2004 11:26
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [plt-scheme] HTML escaping
questions</DIV>
<DIV><BR></DIV><TT>Thanks to Dougo, I got the XML library loaded. I have a
coupla questions:<BR><BR>1/ Given these two values for text and
banner:<BR><BR>(define text "pretty & red")<BR>(define banner "\"here is
the banner\"")<BR><BR>(empty-tag-shorthand
html-empty-tags)<BR>(write-xml/content (xexpr->xml `(html (head (title
,banner))<BR>
(body ((bgcolor
"white"))<BR>
,text)))<BR><BR>The
ampersand is converted to an XML entity but the quotation marks are
not<BR><BR><BR>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?<BR><BR><BR><BR></BLOCKQUOTE></TT></BODY></HTML>