I'm trying to find a way to automatically shorten long hyperlinks that are posted in the comments. For example, turn something like:
into something like:
Currently, I have a design that is far too thin, which causes even moderately long hyperlinks to break the design. Making any changes to the design is not an option, so I am looking for a code solution.
Any ideas? Thanks in advance.