N
N
nickname133842019-03-06 15:16:15
JavaScript
nickname13384, 2019-03-06 15:16:15

How to trim multiline text and add at the end...?

Hello, how to cut off a lot of line text and add at the end ... ? Maybe there is a suitable library for this? You need to cut off the text on almost the entire page
Ps jquery do not offer

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
tyzberd, 2019-03-06
@nickname13384

https://www.npmjs.com/package/react-dotdotdot
there is also a link to https://www.npmjs.com/package/react-truncate

G
GreenMan1899, 2019-03-06
@GreenMan1899

Once wrote a script
https://codepen.io/danilst/pen/QmNXjO

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question