Created
November 20, 2018 22:37
-
-
Save miguel-leon/adfe40d28d6e230fce32fc3521553544 to your computer and use it in GitHub Desktop.
Revisions
-
miguel-leon created this gist
Nov 20, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,7 @@ function appendHtml(element, content) { const aux = document.createElement(element.tagName); aux.innerHTML = content; for (let i = 0; i < aux.children.length; i++) { element.appendChild(aux.children[i]); } }