Battlefield 3 itself contains no scripted profanity in its multiplayer modes. However, voice and text chat from other players frequently includes offensive language. This is a player-behavior issue, not a game-design one.
DICE and EA do not condone toxicity, but player behavior varies match by match. Use the in-game tools to create the environment you want.