Hello!
I noticed that the expander plugin looks for a tag before the text it cuts, and if such a tag exists expander closes it at the slice point and reopens it again after the slice point.
Well, this breaks words onto separate lines if you're using <p> tags inside the <span> which expander truncates.
Maybe most people do need this function, but it totally does not suit me.
I have almost no knowledge of JavaScript or jQuery for that matter. Still I started fiddling around with the plugin source and found a way to remove the closing tag. On line 50 I changed
- startText = startText + endTags[i];
into
- startText = startText;
It might not be clean or good practice, but it does it for me.
Unfortunately, I did not succeed in removing the repeating starting tag without breaking the plugin.
Can anyone please help me finding the piece of code responsible for inserting a new start tag before the end text? Or maybe removing the whole repeating tag functionality altogether?
Thank you!