JSFiddle - React, Tailwind, and code Playground

HTML

<div>Please check your links to ensure they point to the correct article.For example, <a href="http://en.wikipedia.org/wiki/Apple">Apple</a> points to the article about the fruit, while <a href="http://en.wikipedia.org/wiki/Apple_Inc.">Apple Inc.</a> is the title of the article about the consumer electronics manufacturer.</div>

JavaScript

var html = $('div').children('a').map(function(){
    return this.outerHTML;
}).get().join(' and ');

$('div').replaceWith(html);