Learned it in elementary school, circa 1958. I thought there was something weird about it even then.
You must have read the sanitized version. In it Burton collected stories where the most romantic and faithful love was between men.
They also did not tell in your elementary depiction, that Shahrazad, asked the sultan if her young girl relative could spend the night with them. So every night the young girl was with them when the sultan took his pleasure with Shahrazad,while the young girl waited at the foot of the bed. Then Shahrazad used the excuse that her young relative required a story every night, or else she could not sleep. The tale would end at a cliffhanger and the sultan spared her every morning so he could hear the rest of the story.
I read these stories on a special floor at the University of California Santa Barbara. I think there were 14 very large volumes.
If I remember correctly Aladdin’s lamp was gruesome.