[REBOL] 'ML problem with literal quotation marks
From: tim::johnsons-web::com at: 15-Oct-2003 16:35
Hello:
I have a question about puting literal quotation marks into
a form generated by 'ML (Andrew's HTML-generating dialect)
Below is a sample script followed by the output source
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
REBOL[]
print "Content-Type: text/html^/"
do %Pop.r
do %Push.r
do %build-tag.r
do %ML.r
test: {"boo-boo"} ; literal quotes
print ml compose/deep[
html[
body[
input/type/name/value "text" "testing" (test)
]
]
]
;;;; html source follows:
<html>
<body><input type="text" name="testing" value=""boo-boo />
</body></html>
;;; Below is a console session
>> print ml compose/deep[ html[ body[ input/type/name/value "text" "testing" (test) ]
] ]
<html>
<body><input type="text" name="testing" value=""boo-boo"" />
</body></html>
The content as viewed in the browser does not show {"boo-boo"}
(with or without the literal quotes)
How do I resolve this?
thanks
tim
--
Tim Johnson <[tim--johnsons-web--com]>
http://www.alaska-internet-solutions.com