diff tests/cdataF.lac @ 135:b1cfe49ce692

Proper escaping of cdata
author Adam Chlipala <adamc@hcoop.net>
date Thu, 17 Jul 2008 13:33:56 -0400
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/tests/cdataF.lac	Thu Jul 17 13:33:56 2008 -0400
@@ -0,0 +1,8 @@
+val snippet = fn s => <body>
+        <h1>{cdata s}</h1>
+</body>
+
+val main = fn () => <html><body>
+        {snippet "<Hi."}
+        {snippet "Bye."}
+</body></html>