export default class HTML {
    get html() {
        return this._html;
    }
    set html(v) {
        this._html = v;
    }
    constructor(html) {
        this._html = "";
        this.html = html;
    }
    toString() {
        return this.html;
    }
    static isHtml(text) {
        // Check if the text is HTML
        /*
         * Example usage const htmlString = '<div>Hello, World!</div>'; const notHtmlString = 'Just a regular string'
         * console.log(HTML.isHtml(htmlString)); // true
         * console.log(HTML.isHtml(notHtmlString)); // false
         */
        const htmlPattern = /<\/?[a-z][\s\S]*>/i;
        return htmlPattern.test(text);
    }
}
//# sourceMappingURL=Html.js.map