mirror of
https://github.com/Dvorinka/Devour.git
synced 2026-06-04 20:43:05 +00:00
17 lines
1.3 KiB
JSON
17 lines
1.3 KiB
JSON
{
|
|
"id": "9fc667fdc54d4f840b50d43c",
|
|
"source": "solid:signals",
|
|
"type": "github-document",
|
|
"title": "innerhtml",
|
|
"content": "---\ntitle: innerHTML\nuse_cases: \u003e-\n rendering html strings, dynamic html content, third-party html, legacy content\n migration, sanitized markup\ntags:\n - html\n - dom\n - security\n - content\n - markup\nversion: '1.0'\ndescription: \u003e-\n Set raw HTML content in SolidJS elements using innerHTML attribute and render\n HTML strings dynamically.\n---\n\nThe `innerHTML` attribute is equivalent to the [`innerHTML` DOM property](https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML).\nThis attribute replaces all existing nodes of the element with new nodes generated by parsing the provided string as HTML.\n\n:::caution\n\nUsing `innerHTML` with unsanitized user-supplied data can introduce security vulnerabilities.\n\n:::",
|
|
"url": "https://github.com/solidjs/solid-docs/blob/HEAD/src/routes/reference/jsx-attributes/innerhtml.mdx",
|
|
"metadata": {
|
|
"path": "src/routes/reference/jsx-attributes/innerhtml.mdx",
|
|
"repo": "solidjs/solid-docs",
|
|
"repo_url": "https://github.com/solidjs/solid-docs.git",
|
|
"size": 727,
|
|
"source_type": "github"
|
|
},
|
|
"hash": "beb618edc03b9af7d68adc5129963fa71ced54212708ce748e85399b44535eac",
|
|
"timestamp": "2026-02-23T11:43:00.189403111+01:00"
|
|
} |