Created
October 18, 2016 20:53
-
-
Save jarrettbarnett/73c2b0b34f891092514e6973fe6cd40b to your computer and use it in GitHub Desktop.
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 | |
/** | |
* Test to see if a given string contains HTML tags | |
*/ | |
function testIfContainsTag($input) | |
{ | |
if (strpos($input, '<') > -1) { | |
return true; | |
} else { | |
return false; | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment