Ellipsis is not working in Firefox and IE. Need a JS approach to solve this issue

In Firefox and IE browser the line clamp property doesn’t work, if a text exceeds a specific limit need to do an ellipsis.

Can any one suggest an answer