Problem: Receiving HTML with nested children of an unknown depth and formatting them with CSS classes dynamically. I've had this problem arise twice. On the…
Originally I posted this to my dev.to profile in Nov, 2018; you can read it here if you'd like. I decided to repost it on my blog, since I wrote it and all. For…