I have a text to show in div. Now the condition is, this must not contains more then 2 lines. If it contains more then 2 lines then a link(Read More) should be presented as last two words in the second line to show the copmlete text.
Query – How to determine the text is of two lines only?
Edit
Two lines can have two cases.
- New line symbol.
- Virtual wrapping
1 Answer