Sanitise page input.