/**
 * hasHtmlCode(string data)
 *
 * Returns true if method is provided any HTML tags
 *
 * (HTML) is the standard markup language for creating web pages and
 * web applications. HTML elements are the building blocks of HTML pages.
 * The elements are delineated by tags, written using angle brackets.
 * Emample of tags: <img>, <input>, <br>, etc.
 *
 * @recursive     no
 * @type          Method
 * @dependencies  None
 * @example       hasHtmlCode('John Deere <b>Equipment</b>.') <=> true
 *
 * @param {string} data The data to validate as HTML
 *
 * @return {boolean} This returns true if provided HTML
 */
function hasHtmlCode(data) {
    'use strict';
    let regex = /^<([a-z]+)([^<]+)*(?:>(.*)<\/\1>|\s+\/>)$/gi;

    return regex.test(String(data));
}
