viralpatel/jquery.shorten — pull request #11 by ndimatteo (2014-01-31 04:21:19+00:00)
Title: account for content wrapped in <p> tags & various fixes

I found this plugin incredibly useful, until the content I was trying to shorten was user-generated from a wysiwyg. Most content gets wrapped in ```

``` tags, so it's not just 'floating.' This caused the plugin to break, as it didn't know how to properly handle them, as they were **not** tags *within* the text to be truncated, but rather *wrapping* the entirety of the content.

This pull request does a few things:

1. Update the copyright to 2014
2. use ```

``` tags for the ```shortcontent``` and ```allcontent``` wrappers (better semantically, as ```

``` tags within `````` tags is... weird)
3. integrates issue #7 that @henrythewasp addressed
4. removes bottom margin from last ```

``` tag in shortcontent (so it actually appears cut off)
5. wraps ellipses text in a `````` with a class of ```ellip``` so you can style

If anyone has a better approach to account for ```

``` tags and other wrapping elements, share em in the comments.