aboutsummaryrefslogtreecommitdiff
path: root/test/lang.tm
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-24 13:26:49 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-24 13:26:49 -0400
commit800e386105255c9c4faa9a7051b100a8768a70de (patch)
treed1e8b6b221485330b92d225f32c29337d81b6675 /test/lang.tm
parent0609a26f3108148375d4ee2fb3d2d8f9c5756ae7 (diff)
Rename `from_unsafe_text` to `without_escaping`
Diffstat (limited to 'test/lang.tm')
-rw-r--r--test/lang.tm4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lang.tm b/test/lang.tm
index e19c1e2a..9a05eb11 100644
--- a/test/lang.tm
+++ b/test/lang.tm
@@ -9,10 +9,10 @@ lang HTML:
$/'/: "&#39;",
})
- return HTML.from_unsafe_text(t)
+ return HTML.without_escaping(t)
func escape_int(i:Int)->HTML:
- return HTML.from_unsafe_text("$i")
+ return HTML.without_escaping("$i")
func paragraph(content:HTML)->HTML:
return $HTML"<p>$content</p>"