injectHtml

Type:Function
Status:stable
Since:1.0.0
Platform:js
@blackbyte.sugar.js.dom.inject

Inject some html into a element and make sure that the scripts are executed

Params

  1. $elm*-HTMLElement

    The element to inject content into

  2. html*-String

    The html to inject

Example

import { injectHtml } from '@blackbyte/sugar/dom'
injectHtml('<html>...</html>`, $myElement);

Todo

  • testsnormal