The script below assumes that the content area of your site is wrapped in a div tag with an id of content. The first portion eliminates all ® marks from input values, as superscript tags seem to negatively affect IE.

$(document).ready(function() {

$('#content form input').each(function() {
    $(this).val($(this).val().replace(/®/gi,''));
});

$("#content").html(
    $("#content").html().replace(/&reg;/gi, '<sup>&reg;</sup>')
                         .replace(/®/gi, '<sup>&reg;</sup>');
);

 
});

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *