function getErrorList(errors) { var result = {html: '', text: ''}; var patternSpan = //gi; var patternTags = /<\S[^><]*>/g; result.html += "