Trim original_text's extra whitespace.

- Excessive newlines are still shown in tooltips, which made them look bad
- So, I called $.trim right after getting the original html
fix(jquery-trunk8): Fix cross-browser compatibility issue with stripping HTML

Internet Explorer introduced element.innerText a while back which retrieves the text from a DOM node. All other major browsers have agreed to use Node.textContent instead. While most of them also support element.innerText, Firefox does not.

The trunk8 plugin for jQuery uses the check tmp.textContent || tmp.innerText to retrieve the text from a given node. This won't work in Firefox when `tmp` has no content -- specifically when `html` is an empty string -- because `tmp.textContent` returns `""` (an empty string, which is falsey in JavaScript) and `tmp.innerText` returns `undefined`. Because of JavaScript's short circuiting feature, the expression `tmp.textContent || tmp.innerText` then returns `undefined`. This caused an error in one code  which ultimately resulted in the page not rendering entirely.

This fix checks to see whether the browser supports Node.textContent and, if so, returns `tmp.textContent`. Otherwise, return `tmp.innerText`.
Merge pull request #47 from brwr/master

fix(jquery-trunk8): Fix cross-browser compatibility issue with stripping HTML
Added onTruncate init parameter. onTruncate can be passed a function that
will fire if trunk8 *does* actually truncate the text. If trunk8 *does not*
truncate the text, the passed function will not fire.

This is useful if the front-end needs to be modified / decorated in some
custom manner when trunk8 successfully truncates text but left alone
when there is no truncation.
Merge pull request #31 from dillonforrest/master

Trim extra whitespace when getting original text
referenced settings.onTruncate directly
Merge pull request #52 from kfreytag/master

Added onTruncate init parameter / success function
Merge pull request #1 from rviscomi/master

merge from the autor