···7373 await next();
7474}
75757676+import { raw } from 'hono/html';
7777+7678/**
7779 * HTML helper to generate a hidden CSRF input field
8080+ * Returns a raw HTML string that won't be escaped by Hono's html template
7881 */
7979-export function csrfField(token: string): string {
8080- return `<input type="hidden" name="${CSRF_FORM_FIELD}" value="${token}" />`;
8282+export function csrfField(token: string) {
8383+ return raw(`<input type="hidden" name="${CSRF_FORM_FIELD}" value="${token}" />`);
8184}