JSFiddle - React, Tailwind, and code Playground
HTML
<div class="image-subtitle">Representatives of the Dubai Municipality presented CEMEX with the Silver Award http://www.centralandwolfe.com
The ready-mix and precast concrete companies in Dubai that had undergone a DM audit and received a certification were eligible to participate. Essentially, the award recognizes the best performer in the “Certificate of Conformity – Concrete Production and Delivery Facilities.”</div>
<hr>
<div id="image-description"></div>
JavaScript
function replaceURLWithHTMLLinks(text) {
var exp = /(\b(((https?|ftp|file|):\/\/)|www[.])[-A-Z0-9+&@#\/%?=~_|!:,.;]*[-A-Z0-9+&@#\/%=~_|])/ig;
return text.replace(exp,"<a href='$1'>$1</a>");
}
replaceURLWithHTMLLinks($('.image-subtitle').html());
$('#image-description').append(replaceURLWithHTMLLinks($('.image-subtitle').html()));
$('.image-subtitle').hide();