Last active
August 4, 2016 18:50
-
-
Save bitdivine/e7ff85a666b220f8f8b8025832ce7e8d to your computer and use it in GitHub Desktop.
text2html
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 text2html(html,wrappertag){var wrapper= document.createElement(wrappertag||'div');wrapper.innerHTML= html;return wrapper;} | |
| function getscript(url){var script = document.createElement('script');script.type = 'text/javascript';script.src = url;document.head.appendChild(script);} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage: