diff --git a/jQuery.succinct.js b/jQuery.succinct.js index 63399eb..ee535c1 100644 --- a/jQuery.succinct.js +++ b/jQuery.succinct.js @@ -27,7 +27,7 @@ regex = /[!-\/:-@\[-`{-~]$/, init = function() { elements.each(function() { - textDefault = $(this).html(); + textDefault = $(this).html().trim(); if (textDefault.length > settings.size) { textTruncated = $.trim(textDefault)