I think it should be `addslashes($generator->generateString($label))`