Fix sanitize_text