clean the formatting of the links