I have this HTML heading:
<h1>Time Matters®</h1> (equals to: Time Matters®)
I need a way to control the ‘® ;‘ mark either by CSS or jQuery. As far as I know, I don’t think it’s possible to target ‘® ;‘ with CSS, is there?
Now, if jQuery is used, I need to enclose ‘® ;‘ in < sup > tags, like this:
<h1>Time Matters<sup>®</sup></h1>
…this way I can target the element via CSS.
I tried adapting this tutorial but the code encapsulates all words in < span > tags.
Any idea how to accomplish this? Any help would be greatly appreciated.
Thanks.
A normal Javascript
String .replace()should do it:Example: http://www.jsfiddle.net/4yUqL/24/
I just realized it, wow this looks pretty impressive