None of this should be necessary because ActivityPub supports HTML content by default. That's spelled out clearly in the specification. It's all just Mastodon playing their little embrace, extend, extinguish games.