added method for modifying user input html to use HTML Purifier and markdown