src/Utilities/Regex.php
public static function areValidHtmlAttributes($htmlAttributes)
    {
        /*
         * Not a string?
         * Nothing to do
         */
        if (!is_string($htmlAttributes)) {
            return false;
        }

        $pattern = self::getHtmlAttributePattern();

        return (bool)preg_match_all($pattern, $htmlAttributes);
    }
public static function areValidHtmlAttributes($htmlAttributes)
    {
        /*
         * Not a string?
         * Nothing to do
         */
        if (!is_string($htmlAttributes)) {
            return false;
        }

        $pattern = self::getHtmlAttributePattern();

        return (bool)preg_match_all($pattern, $htmlAttributes);
    }
public static function areValidHtmlAttributes ( $ htmlAttributes ) { /*
         * Not a string?
         * Nothing to do
         */ if ( ! is_string ( $ htmlAttributes ) ) { return false ; } $ pattern = self :: getHtmlAttributePattern ( ) ; return ( bool ) preg_match_all ( $ pattern , $ htmlAttributes ) ; }
Returns information if given html attributes are valid

@param string $htmlAttributes The html attributes to verify
@return bool
Returns information if given html attributes are valid