JSFiddle - React, Tailwind, and code Playground
HTML
And the price at John's hardware shop are<span class="john-shop">$2.35</span>
JavaScript
$('.john-shop').contents().wrap('<a href="http://www.johns-shop.com"></a>');
And the price at John's hardware shop are<span class="john-shop">$2.35</span>
$('.john-shop').contents().wrap('<a href="http://www.johns-shop.com"></a>');