Modify sanitize helper to fix link problem.