vaakash / jquery-collapser

jQuery collapser is a small and useful jQuery plugin for collapsing/truncating an element text by words, characters and lines with a flexible API. It is an all in one plugin with multiple functionalities to truncate a paragraph or any element as desired.
MIT License
99 stars 35 forks source link

preserve the HTML in "words" count mode? #1

Closed rodrigoAbril closed 9 years ago

rodrigoAbril commented 9 years ago

is there some way to preserve the HTML in "words" count mode?

vaakash commented 9 years ago

Hi rodrigoAbril, in collapsed mode the text is stripped off to make counting of words/characters and placing breakpoints accurate and simple. If HTML is preserved there will be issues if images are present ! If there is a CSS issue in collapsed state, you can assign some class in collapsed mode and style it as required. Thanks !