[plt-scheme] HTML escaping questions

From: ifconfig (ifconfignslookup at hotmail.com)
Date: Mon Feb 23 17:34:24 EST 2004

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.


  ----- Original Message ----- 
  From: Terrence Brannon 
  To: PLT Scheme 
  Sent: Monday, February 23, 2004 11:26 PM
  Subject: [plt-scheme] HTML escaping questions

  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/20040224/fa82970b/attachment.html>

Posted on the users mailing list.