JQuery Filter Replace Text with CSS icons or Background image

This will take a string, filter it, replace specific words with icons and render them from CSS. Background images can be used rather than colors. Developed by Andrew pougher

HTML

<p>PROSPCENBERV501N45</p>

JavaScript

$('p').filter(function() {
    return $(this).text();
}).each(function() {
    $(this).html($(this).html().replace(/PROSPCENBERV5/i, " "));
});