The present invention relates to a method for preparing electrospun fibers, the method comprising v) dissolving a fiber-forming hydrophilic polymer in an alcohol selected from C1-C3 alcohols, vi) dissolving a bioadhesive substance in water, wherein the bioadhesive substance has a solubility in water of 3 g/100 ml or more at 25 °C or g/100 ml or more at 25 °C, and wherein the bioadhesive substance has a solubility in an alcohol selected from C1-C3 alcohols of 0.5 g/100 ml 10 or less at 25 °C or 0.1g/100 ml or less at 25 °C, vii) adding under stirring the resulting solution from ii) to the resulting solu- tion from i), whereby the bioadhesive substance precipitates and a ho- mogeneous suspension is formed, wherein the bioadhesive substance is suspended as particles, and viii) electrospinning the homogeneous suspension to obtain hydrophilic fi- bers.