add sanitize method to remove undesired html elements