Format links in messages.