create helper method for linking mentions and hashtags on server during render time