/Knowledge/sources/honojs__hono/llms-full/html-helper-html-insert-snippets-into-jsx--4fe0f5976a1d.md
html Helper: html > Insert snippets into JSX - hono-docs
html Helper: html Insert snippets into JSX Source evidence: /Sources/honojs hono/provenance.md Canonical citation: https://hono.dev/llms full.txt insert snip...
html Helper: html > Insert snippets into JSX
Source evidence: /Sources/honojs__hono/provenance.md Canonical citation: https://hono.dev/llms-full.txt#insert-snippets-into-jsx
Summary
Insert the inline script into JSX: tsx app.get('/', (c) => { return c.html( Test Site {html` // No need to use dangerouslySetInnerHTML. // If you write it here, it will not be escaped. `} Hello! ) })
Content
Insert the inline script into JSX:
app.get('/', (c) => {
return c.html(
<html>
<head>
<title>Test Site</title>
{html`
<script>
// No need to use dangerouslySetInnerHTML.
// If you write it here, it will not be escaped.
</script>
`}
</head>
<body>Hello!</body>
</html>
)
})
Metadata
{
"chunk_index": 0,
"citation": "https://hono.dev/llms-full.txt#insert-snippets-into-jsx",
"coverage_role": "overview",
"qualified_title": "Hono / llms-full / html Helper > `html` > Insert snippets into JSX",
"retrieved_at": "2026-07-02T05:51:01Z",
"section_index": 771,
"source_id": "/honojs/hono",
"source_type": "llms_full",
"target_label": "llms-full",
"title": "html Helper: html > Insert snippets into JSX",
"upstream_url": "https://hono.dev/llms-full.txt",
"version": "2026"
}