Last active
June 23, 2018 19:26
-
-
Save yukulele/01c250604d55c0e1950e979203b92eee to your computer and use it in GitHub Desktop.
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 characters
function parseHtmlFragment(str = '') { | |
var t = document.createElement('template') | |
t.innerHTML = str | |
return t.content.cloneNode(true) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment