trim-extra-html-whitespace

Small helper function to remove extra leading whitespace caused by calling innerHTML on nested html nodes

Usage no npm install needed!

<script type="module">
  import trimExtraHtmlWhitespace from 'https://cdn.skypack.dev/trim-extra-html-whitespace';
</script>

README

Note: This snippet uses CommonJS exports, we can UMD-ify it later if neccessary