$(document).ready(function() {
   $("h1:contains('&#038;'), h2:contains('&#038;'), h3:contains('&#038;')")
        .contents()
        .each(
            function() {
                if( this.nodeType == 3 ) {
                    $(this)
                        .replaceWith( this
                            .nodeValue
                            .replace( /&/g, "<abbr title='and' class='amp'>&#038;</abbr>" )
                        );
                }
            }
        );
});