Function dangerouslySetInnerHTML

Set inner HTML of an element

0.11.0

  • Type Parameters

    Parameters

    • s: SignalLike<P, E, string>

      state bound to the inner HTML

    • OptionalattachShadow: "closed" | "open"

      whether to attach a shadow root to the element, expects mode 'open' or 'closed'

    • OptionalallowScripts: boolean

      whether to allow executable script tags in the HTML content, defaults to false

    Returns (host: Component<P>, target: E) => Cleanup