🔔 Alert..!! Get 2 Month Free Cloud Hosting With $200 Bonus From Digital Ocean ACTIVATE DEAL

sup-reg.js is a dead simple jQuery plugin that automatically wraps registered trademark sign (®) around HTML sup tag with a given CSS class.

trade-mark

Documentation

sup-reg.js

Automatically add <sup> tags around all registration marks.

Any ® marks will be wrapped in <sup> tags. Any registration marks already in <sup> tags will be ignored. So there is no chance of double wrapping them.

Requirements

  • jQuery 1.11.0 or higher

Usage

Just load the script before the end of body tag.

<script src="sup-reg.js"></script>

If you want to add specific styling to <sup> tags created by sup-reg.js, the script will add a class of sup-reg to each tag. It will also add an additional class of sup-reg-kern to any <sup> tag that is preceded by a period. This is useful for registration marks that are used on abbreviations. This way you can style additional kerning on these specific tags.

Install via bower

bower install sup-reg --save 

Possible Issues

It’s assumed that the document is set as utf-8. Haven’t tested other encodings.


You May Also Like