The public this weekend got a rare view into how Facebook tries to keep offensive and dangerous content offline. Leaked confidential documents exposed the secret rules by which Facebook polices postings on issues such as violence, hate speech, terrorism, pornography, racism and self-harm, as well as such subjects as sports fixing and cannibalism. More than 100 internal training manuals, spreadsheets and flowcharts were leaked. Facebook has defended its moderation efforts, saying that its primary goal is keeping people on Facebook safe.