[plt-scheme] literal html data in servlets
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:
(make-comment
(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!