Restricted mode properly controls sanitisation.