Here "the world" is a metonym that refers to the people who do not know God. Alternate translation: "that all the people will know" (See: [[rc://en/ta/man/translate/figs-metonymy]])
This kind of love comes from God and focuses on the good of others, even when it does not benefit oneself. This kind of love cares for others, no matter what they do.