aboutsummaryrefslogtreecommitdiff
path: root/docs/langs.md
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 /docs/langs.md
parent0609a26f3108148375d4ee2fb3d2d8f9c5756ae7 (diff)
Rename `from_unsafe_text` to `without_escaping`
Diffstat (limited to 'docs/langs.md')
-rw-r--r--docs/langs.md4
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/langs.md b/docs/langs.md
index 7e1bd7ef..0eecb3cd 100644
--- a/docs/langs.md
+++ b/docs/langs.md
@@ -18,7 +18,7 @@ lang HTML:
$/"/: "&quot",
$/'/: "&#39;",
})
- return HTML.from_unsafe_text(t)
+ return HTML.without_escaping(t)
func paragraph(content:HTML)->HTML:
return $HTML"<p>$content</p>"
@@ -75,7 +75,7 @@ instead of building a global function called `execute()` that takes a
```tomo
lang Sh:
func escape(text:Text)->Sh:
- return Sh.from_unsafe_text("'" ++ text:replace($/'/, "''") ++ "'")
+ return Sh.without_escaping("'" ++ text:replace($/'/, "''") ++ "'")
func execute(sh:Sh)->Text:
...