Created
October 9, 2015 09:19
-
-
Save clemgrim/34cc0a5f47f6c6a455bc 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
| var div = document.createElement('div'); | |
| function escapeHtml(unsafe) { | |
| div.innerText = unsafe; | |
| return div.innerHTML; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment