JSFiddle - React, Tailwind, and code Playground
HTML
<p>Hey! ®</p>
CSS
sup{color:red}
JavaScript
$(document).ready(function() {
$('*').each(function() {
var n = $(this).html().replace(
new RegExp('®','g'),
'<sup>®</sup>'
).replace(
new RegExp('®','g'),
'<sup>®</sup>'
);
$(this).html(n);
});
});