You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/plugins/html.md
+4-10Lines changed: 4 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -103,16 +103,6 @@ Keep in mind there's no real way to validate HTML, so the default implementation
103
103
104
104
## Jsx
105
105
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
-
116
106
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.**
117
107
118
108
To use JSX, first rename your file extension to either `.tsx` or `.jsx`.
@@ -163,6 +153,10 @@ and that's it! 🎉
163
153
164
154
You can now use JSX to define your web page and Elysia will turns them to HTML automatically.
165
155
156
+
::: warning
157
+
Learn how to [sanitize](https://github.com/kitajs/html#sanitization) and avoid xss vulnerabilities in your code!
158
+
:::
159
+
166
160
::: tip
167
161
168
162
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