That's not true. I just went through secondary education in the UK and we've studied pieces of literature with quite raw swears in them. It's not a massive issue.
As I said in my answer, literature study is the place where it would be acceptable, but it wouldn't be appropriate in a science class where the point is not analysing the language.