aboutsummaryrefslogtreecommitdiff
path: root/test/lang.tm
diff options
context:
space:
mode:
Diffstat (limited to 'test/lang.tm')
-rw-r--r--test/lang.tm10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/lang.tm b/test/lang.tm
index 451ec480..c0add87b 100644
--- a/test/lang.tm
+++ b/test/lang.tm
@@ -2,11 +2,11 @@ lang HTML:
HEADER := $HTML"<!DOCTYPE HTML>"
func escape(t:Text->HTML):
t = t:replace_all({
- $/&/: "&amp;",
- $/</: "&lt;",
- $/>/: "&gt;",
- $/"/: "&quot",
- $/'/: "&#39;",
+ $/&/="&amp;",
+ $/</="&lt;",
+ $/>/="&gt;",
+ $/"/="&quot",
+ $/'/="&#39;",
})
return HTML.without_escaping(t)