lib/html.js
function( tagName, inputString ) {
		let ret = inputString;

		if ( ret.indexOf( '<' + tagName ) === -1 ) {
			ret = `<${tagName}>${ret}`;
		}

		if ( ret.indexOf( '</' + tagName + '>' ) === -1 ) {
			ret = `${ret}</${tagName}>`;
		}

		return ret;
	}
function( tagName, inputString ) {
		let ret = inputString;

		if ( ret.indexOf( '<' + tagName ) === -1 ) {
			ret = `<${tagName}>${ret}`;
		}

		if ( ret.indexOf( '</' + tagName + '>' ) === -1 ) {
			ret = `${ret}</${tagName}>`;
		}

		return ret;
	}
function ( tagName , inputString ) { let ret = inputString ; if ( ret . indexOf ( '<' + tagName ) === - 1 ) { ret = ` ${ tagName } ${ ret } ` ; } if ( ret . indexOf ( '</' + tagName + '>' ) === - 1 ) { ret = ` ${ ret } ${ tagName } ` ; } return ret ; }
Ensures that `string` is wrapped with an `tagName` element.

@param {string} tagName
@param {string} inputString
@returns {string} A copy of `inputString` that is guaranteed to be wrapped with `tagName` element.
Ensures that string is wrapped with an tagName element .