JRMorris77
4/11/2017 - 7:13 AM

wrap-text-with-html-jquery.js

<script>
//Add HTML elements around text strings inside of a parent element.
jQuery("div.feature-text:contains('products')").html(function(_, html) {
   return html.split('products').join("<a class='a'>products</a>");
});
jQuery("div.feature-text:contains('100')").html(function(_, html) {
   return html.split('100').join("<a class='b'>100</a>");
});
</script>