function removeLinksFromText( text ) {
	const anchors = getAnchorsFromText( text );
	if ( anchors.length > 0 ) {
		anchors.forEach( function( anchor ) {
			text = text.replace( anchor, "" );
		} );
	}

	return text;
}
function removeLinksFromText( text ) {
	const anchors = getAnchorsFromText( text );
	if ( anchors.length > 0 ) {
		anchors.forEach( function( anchor ) {
			text = text.replace( anchor, "" );
		} );
	}

	return text;
}
function removeLinksFromText ( text ) { const anchors = getAnchorsFromText ( text ) ; if ( anchors . length > 0 ) { anchors . forEach ( function ( anchor ) { text = text . replace ( anchor , "" ) ; } ) ; } return text ; }
Removes links from text.

@param {string} text The text string to analyze.

@returns {string} The text with links stripped away.
Removes links from text .