$("#container a").shrinkUrls({
size:<number>, // max size (default 25)
include:'<regex>' // regular expression a link text must
// match to be considered
exclude:'<regex>' // regular expression a link text must
// not match to be considered
whitespace:<boolean>, // true: even shrink if there's whitespace
// in the link text (default false)
trunc:<head|middle|tail> // position where to insert the ellipsis
});
jqShrinkUrls to a container to process all anchors inside.
%JQREQUIRE{"shrinkurls"}%
<div class="jqShrinkUrls" data-size="25" data-whitespace="true">
<a href="#">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Etiam vehicula est et felis imperdi</a>
</div>