jarrettbarnett
10/18/2016 - 8:53 PM

testForHtmlTag.php

<?php
/**
 * Test to see if a given string contains HTML tags
 */
function testIfContainsTag($input)
{
    if (strpos($input, '<') > -1) {
        return true;
    } else {
        return false;
    }
};