Upvoted for wbr. I kinda wished for something like this. I wonder if it actually works in modern browsers.
You could inject it every x characters in very long words when parsing user input.
It is used in Thai where word breaks are not visible and line breaks are only allowed at word breaks.