Just porting over our code from yesterday into a function called "formattedMsg"

Returns an image, link, or sanitized text. Perhaps we may add stuff like video, etc in the future.