Sweet Justice jQuery plugin – Create beautiful justified text
April 23rd, 2010 - Frontend, jQuery
Sweet Justice is a jQuery plugin that will take a piece of text and turn it into justified text. It will also insert a soft hyphen if needed. It works with both jQuery and YUI3. If you take a look at the code of this really small plugin (almost 5k) you will see that the author have some conditionals in place. It won’t touch text inside code, pre and abbr tags. There’s also a minimum characters check set on 6 characters. Great little thingy.



