FGRibreau/node-truncate

Support HTML suffix

joaocunha opened this issue · 2 comments

It would be great to be able to append some HTML after the ellipsis. In this example, there's a link to continue reading.

image

You already can :)

truncate("1234 http://google.com hey :)", 4, {ellipsis:'<a>continue reading</a>'}); 

💯!