How do I stop HTML entities in a custom meta box from being un-htmlentitied?

I have a custom meta box that is supposed to accept HTML, but the text I’m trying to input contains both double and single quotes (and ampersands), and it’s messing up the saved data – each time I reload the post, the data is duplicated with an extra single quote (and angle bracket) inserted at … Read more