[plt-scheme] literal html data in servlets

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Aug 18 17:46:20 EDT 2005

On Aug 18, Hans Oesterholt-Dijkema wrote:
> Hmm, ok, but what I really want is to include real (partial) HTML
> code into an xexpr.

Seems like there is no way to escape into normal strings using xexprs.
Besides the advice of switching to another system, the only way I
could find to do this is escape is through comment objects.  The thing
is that comments contain arbitrary text which is never checked, so a
hack that can be used is:

   (format "-->\n~a\n<!--"
           "arbitrary html string")))

A proper solution would be to fix the xml collection to have a
construct that inserts literal text.  (There was probably some reason
why this wasn't done...)

          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                  http://www.barzilay.org/                 Maze is Life!

Posted on the users mailing list.