The invention relates to a foam formulation comprising a substantially emulsifier-free emulsion of the oil-in-water type, comprising an oil phase and an aqueous phase, the emulsion comprising at least one surface active, ionic polymer with a molecular weight of more than 5000 g/mol, wherein the ionic polymer is a copolymer comprising as monomer units an ionic monomer (M1) and at least one further monomer.