JSFiddle - React, Tailwind, and code Playground
by benhowdle89
HTML
<a data-key="stripURL" href="http://blah.com">http://blah.com</a>
<a data-key="stripURL" href="https://foo.net">https://foo.net</a>
JavaScript
var strips = $('[data-key="stripURL"]');
for (var i = 0, len = strips.length; i < len; i++) {
var el = $(strips[i]),
origURL = el.text(),
newURL = origURL.replace(/https?:\/\//ig, '');
el.text(newURL);
}