lib/runner.js
function processIssueHtml(element) {
			let outerHTML = null;
			let innerHTML = null;
			if (!element.outerHTML) {
				return outerHTML;
			}
			outerHTML = element.outerHTML;
			if (element.innerHTML.length > 31) {
				innerHTML = `${element.innerHTML.substr(0, 31)}...`;
				outerHTML = outerHTML.replace(element.innerHTML, innerHTML);
			}
			if (outerHTML.length > 251) {
				outerHTML = `${outerHTML.substr(0, 250)}...`;
			}
			return outerHTML;
		}
function processIssueHtml(element) {
			let outerHTML = null;
			let innerHTML = null;
			if (!element.outerHTML) {
				return outerHTML;
			}
			outerHTML = element.outerHTML;
			if (element.innerHTML.length > 31) {
				innerHTML = `${element.innerHTML.substr(0, 31)}...`;
				outerHTML = outerHTML.replace(element.innerHTML, innerHTML);
			}
			if (outerHTML.length > 251) {
				outerHTML = `${outerHTML.substr(0, 250)}...`;
			}
			return outerHTML;
		}
function processIssueHtml ( element ) { let outerHTML = null ; let innerHTML = null ; if ( ! element . outerHTML ) { return outerHTML ; } outerHTML = element . outerHTML ; if ( element . innerHTML . length > 31 ) { innerHTML = ` ${ element . innerHTML . substr ( 0 , 31 ) } ` ; outerHTML = outerHTML . replace ( element . innerHTML , innerHTML ) ; } if ( outerHTML . length > 251 ) { outerHTML = ` ${ outerHTML . substr ( 0 , 250 ) } ` ; } return outerHTML ; }
Get a short version of an element's outer HTML.
@private
@param {HTMLElement} element - An element to get short HTML for.
@returns {String} Returns the short HTML as a string.
Get a short version of an element s outer HTML .