I may have a link formated with the following text in these 3 flavors, on my custom page...
<h3 class="ms-srch-ellipsis"><a class="ms-srch-item-link" href="...">this_old_house_is_broken</a></h3>
<h3 class="ms-srch-ellipsis"><a class="ms-srch-item-link" href="...">this-old-house-is-broken</a></h3>
<h3 class="ms-srch-ellipsis"><a class="ms-srch-item-link" href="...">ThisOldHouseIsBroken</a></h3>
What is a best practice approach with jQuery, to check all ms-srch-ellipsis elements and fix the text to look like this...
<h3 class="ms-srch-ellipsis"><a href="...">This Old House Is Broken</a></h3>
I started with this approach, just to get somewhere...but it doesn't change anything...
$( ".ms-srch-item-link" ).each(function(e) {
$(this).text().replace('-',/\s+/g);
$(this).text().replace('_',/\s+/g);
});