I need a function that replaces several hyphenation with one, spaces and hyphenation from the end and beginning of the line removes (as trim
for php
), replaces the hyphenation with some specific string. And all this I need to implement in javascript
(jQuery is still possible and maybe other js libraries).
I would be very grateful if you help. You are welcome