A pharmaceutical composition comprising: glycerol formal in an amount ranging from about 10% to about 98% by weight of the composition hydroxypropyl methylcellulose in an amount ranging from about 1% to about 10% by weight of the composition and an antibacterial agent, an antifungal agent, and a steroid each in an amount ranging from about 0.01% to about 5% by weight of the composition, wherein the antibacterial agent, antifungal agent, and steroid are dissolved in the solvent and the pharmaceutical composition is in the form of a gel.