" ) + " ".length; var baseEndIndex = str.indexOf( "" ); var baseHTML = str.slice( baseStartIndex, baseEndIndex ); $( "article" ).replaceWith( baseHTML ); setBody( data ); } ); };