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

Escaping HTML for lines is now optional #10

Open andreyyudin opened 7 years ago

andreyyudin commented 7 years ago

This is different from https://github.com/martindsouza/jquery-collapser/commit/67db5afad17ac8cdca38c6063dc94ba4fa48405e as it has an additional rendering of HTML on initialization. Otherwise, there can be a moment when the displayed collapsed text is not rendered properly.