This medicine has bismuth subsalicylate in it . It is also used as an internal deodorant and to treat eye infections and peptic ulcers . Historically bismuth compounds were used to treat syphilis and today bismuth subsalicylate and bismuth subcitrate are used to treat peptic ulcers .