1
vote
1answer
400 views

Collapse long text (with more/less links)

I wrote a little function to compact long text. I am relatively new to JavaScript so I am not sure I wrote it as elegantly as possible. I wrote it to be runnable on the server side (Node.js) as well, ...