Можно так -
https://codepen.io/anon/pen/Jzevemvar defaultsHTML = [];
$('.name').each((index, element) => {
defaultsHTML[index] = $(element).html();
});
$('.search-input').on('input', function() {
var songSearch = $(this).val();
defaultsHTML.forEach((baseHTML, index) => {
var eqElement = $('.name').eq(index);
if (baseHTML.match(songSearch) !== null && songSearch.length > 2) {
$(eqElement).html(baseHTML.replace(songSearch, '<span class="songSearch">' + songSearch + '</span>'));
} else {
$(eqElement).html(baseHTML);
}
});
});