We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7edb3dc commit 9464604Copy full SHA for 9464604
packages/fastify-html-plugin/examples/htmx.tsx examples/fastify-htmx.tsx
@@ -4,7 +4,7 @@ import fastifyFormbody from '@fastify/formbody';
4
import { Suspense } from '@kitajs/html/suspense';
5
import fastify from 'fastify';
6
import { setTimeout } from 'node:timers/promises';
7
-import { fastifyKitaHtml } from '..';
+import { fastifyKitaHtml } from '../packages/fastify-html-plugin/types';
8
9
const app = fastify({ logger: true });
10
@@ -84,6 +84,9 @@ app.post(
84
(req, rep) => {
85
const { username } = req.body as { username: string };
86
users.push(username);
87
+
88
+ // Safe is required to avoid xss attacks.
89
+ // Use `xss-scan` CLI to automatically check for forgotten `safe` props.
90
rep.html(<li safe>{username}</li>);
91
}
92
);
0 commit comments