Added sanitize method to BaseElement. This will handle making sure the data is safe for html.