Creating facebook-esque parsing and styling for hashtags, mentions and email addresses in contenteditable divs