src/sap.ui.core/src/sap/ui/thirdparty/qunit.js
function escapeText( s ) {
	if ( !s ) {
		return "";
	}
	s = s + "";

	// Both single quotes and double quotes (for attributes)
	return s.replace( /['"<>&]/g, function( s ) {
		switch ( s ) {
		case "'":
			return "&#039;";
		case "\"":
			return "&quot;";
		case "<":
			return "&lt;";
		case ">":
			return "&gt;";
		case "&":
			return "&amp;";
		}
	});
}
function escapeText( s ) {
	if ( !s ) {
		return "";
	}
	s = s + "";

	// Both single quotes and double quotes (for attributes)
	return s.replace( /['"<>&]/g, function( s ) {
		switch ( s ) {
		case "'":
			return "&#039;";
		case "\"":
			return "&quot;";
		case "<":
			return "&lt;";
		case ">":
			return "&gt;";
		case "&":
			return "&amp;";
		}
	});
}
function escapeText ( s ) { if ( ! s ) { return "" ; } s = s + "" ; // Both single quotes and double quotes (for attributes) return s . replace ( / ['"<>&] / g , function ( s ) { switch ( s ) { case "'" : return "&#039;" ; case "\"" : return "&quot;" ; case "<" : return "&lt;" ; case ">" : return "&gt;" ; case "&" : return "&amp;" ; } } ) ; }
Escape text for attribute or text content.
Escape text for attribute or text content .