export const toHTMLErrorsByValidatorLaravel = objErrors => {
    var str = "<ul class=\'text-left\'>";

    if (typeof (objErrors) === "string") {
        return objErrors;
    }

    for (var key in objErrors) {
        str += "<li><strong>" + key + ":</strong> <br>"
            + objErrors[key].join('<br>')
            + "</li>";
    }

    return str + "</ul>";

}