Last active
November 19, 2020 14:35
-
-
Save makingthingswork/564bede011d17b39153fb2f08a2d1e67 to your computer and use it in GitHub Desktop.
Check for HTML
This file contains 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
<?php | |
function is_html(string){ | |
return (string != strip_tags(string)) ? true : false; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment