sanitize popup var