The departures illustrate the choices internet companies face in a huge potential market, but one where the government requires them to censor content and keywords deemed politically sensitive or inappropriate. Google gave up several years ago, and Microsoft’s professional networking platform LinkedIn said last month it would shutter its Chinese site, replacing it with a jobs board instead. Yahoo is the latest foreign tech company to exit China.