The BBC has uncovered details of a secret deal that let several hundred IS militants escape from the Syrian city.

Quentin Sommerville has this exclusive report.