Skip to content

Commit a8ce1e0

Browse files
authored
Merge pull request #101 from Benbb96/patch-1
Fix closing script in html.md
2 parents ae8ab2d + 9c1c051 commit a8ce1e0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/plugins/html.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,13 @@ Learn how to [sanitize](https://github.com/kitajs/html#sanitization) and avoid x
159159
160160
::: tip
161161
162+
new Elysia()
163+
.get('/unsafe', ({ sanitize }) => (
164+
<h1>{sanitize(malicious)}</h1>
165+
))
166+
.listen(8080)
167+
```
168+
162169
Read more about JSX in the [official documentation](https://github.com/kitajs/html) and learn how to add HTMX typings, compiling html, adding more JSX components and so on...
163170

164171
:::

0 commit comments

Comments
 (0)