Hey everyone,
I'm working on a project that needs to be able to parse HTML into a meaningful array without sacrificing memory efficiency (aka no recursion). I wasn't able to find this anywhere when I needed it, so I thought I'd share with anyone who could use this function.
I hope it's helpful.