Last active
May 9, 2019 03:59
-
-
Save fazlurr/0b759eba87e2f51cafeea80c9d6d3375 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 checkHTML = function(html) { | |
var doc = document.createElement('div'); | |
doc.innerHTML = html; | |
return ( doc.innerHTML === html ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment