Are onions safe to eat

I heard the weren’t