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 nil 10 or less at 25° C. or 0.1 g/100 ml or less at 25° C., vii) adding under stirring the resulting solution from ii) to the resulting solution from i), whereby the bioadhesive substance precipitates and a homogeneous suspension is formed, wherein the bioadhesive substance is suspended as particles, and viii) electrospinning the homogeneous suspension to obtain hydrophilic fibers.