Here is a text in html
...now have strategies to |lead our company| successfully...
and here is what I want using jquery
...now have strategies to <strong>lead our company</strong> successfully...
I tried
jQuery(function(){
jQuery('.quotes').each(function() {
console.log(jQuery(this).text());
var text = jQuery(this).text().replace(/[|]/g,"<strong>");
var texts = jQuery(text).replace(/[|]/g,"</strong>");
jQuery(this).html(text);
});
});