We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b8d1f8f commit 9aa80ddCopy full SHA for 9aa80dd
docs/patterns/configuration.md
@@ -216,7 +216,7 @@ import { Elysia, t } from 'elysia'
216
new Elysia({ prefix: '/v1' }).get('/name', 'elysia') // Path is /v1/name
217
```
218
219
-## santize
+## sanitize
220
221
A function or an array of function that calls and intercepts on every `t.String` while validation.
222
@@ -226,7 +226,7 @@ Allowing us to read and transform a string into a new value.
226
import { Elysia, t } from 'elysia'
227
228
new Elysia({
229
- santize: (value) => Bun.escapeHTML(value)
+ sanitize: (value) => Bun.escapeHTML(value)
230
})
231
232
0 commit comments