Skip to content

Commit 855de65

Browse files
committed
📘 doc: reduce sanitize font size
1 parent 6d928a5 commit 855de65

File tree

1 file changed

+4
-10
lines changed

1 file changed

+4
-10
lines changed

docs/plugins/html.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,6 @@ Keep in mind there's no real way to validate HTML, so the default implementation
103103
104104
## Jsx
105105
106-
<br />
107-
108-
::: warning
109-
110-
# Learn how to [sanitize](https://github.com/kitajs/html#sanitization) and avoid xss vulnerabilities in your code!
111-
112-
:::
113-
114-
<br />
115-
116106
This plugin re-exports [@kitajs/html](https://github.com/kitajs/html), which is a JSX factory for creating HTML strings from JSX. **Please report JSX related issues to that repository.**
117107
118108
To use JSX, first rename your file extension to either `.tsx` or `.jsx`.
@@ -163,6 +153,10 @@ and that's it! 🎉
163153
164154
You can now use JSX to define your web page and Elysia will turns them to HTML automatically.
165155
156+
::: warning
157+
Learn how to [sanitize](https://github.com/kitajs/html#sanitization) and avoid xss vulnerabilities in your code!
158+
:::
159+
166160
::: tip
167161
168162
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...

0 commit comments

Comments
 (0)