edit sanitize関数に置き換え