This repository was archived by the owner on Jan 4, 2021. It is now read-only.

Description
In our websites, we would like content to be truncated like this:
Lorem ipsum dolor sit amet…
and not like this:
Lorem ipsum dolor sit amet …
The space before the ellipsis is the difference. This could very easily be solved by simply making $rep = ' …' in this line and removing the concatenated space on this line.
Then, the default replacement starts with a space, but I could pass in a replacement without one, if I so desire.