Solid
  • Core
  • Router
  • SolidStart
  • Meta
  • Basic reactivity
    • createEffect
    • createMemo
    • createResource
    • createSignal
  • Component APIs
    • children
    • createContext
    • createUniqueId
    • lazy
    • useContext
  • Components
    • <Dynamic>
    • <ErrorBoundary>
    • <For>
    • <Index>
    • <NoHydration>
    • <Portal>
    • <Show>
    • <Suspense>
    • <SuspenseList>
    • <Switch> / <Match>
  • JSX attributes
    • @once
    • attr:*
    • bool:*
    • classList
    • innerHTML
    • on:*
    • on*
    • prop:*
    • ref
    • style
    • textContent
    • use:*
  • Lifecycle
    • onCleanup
    • onMount
  • Reactive utilities
    • batch
    • catchError
    • createRoot
    • from
    • getOwner
    • indexArray
    • mapArray
    • mergeProps
    • observable
    • on
    • runWithOwner
    • splitProps
    • startTransition
    • untrack
    • useTransition
  • Rendering
    • DEV
    • hydrate
    • hydrationScript
    • isServer
    • render
    • renderToStream
    • renderToString
    • renderToStringAsync
  • Secondary primitives
    • createComputed
    • createDeferred
    • createReaction
    • createRenderEffect
    • createSelector
  • Store utilities
    • createMutable
    • createStore
    • modifyMutable
    • produce
    • reconcile
    • unwrap
  • Server utilities
    • getRequestEvent
JSX attributes

innerHTML

Edit this page

The innerHTML attribute is equivalent to the innerHTML DOM property. This attribute replaces all existing nodes of the element with new nodes generated by parsing the provided string as HTML.

caution

Using innerHTML with unsanitized user-supplied data can introduce security vulnerabilities.

Report an issue with this page
Previous← classList
Nexton:* →
On this page
  1. Overview
Contribute
  1. Edit this page
  2. Report an issue with this page