Parse html in custom auth

I'm trying to access some elements within the html body returned by http1.body from the previous step in custom authentication. I'm using JavaScript step however the problem is that the DOMParser library is not available to parse the html content. What is the suggested method to parse the html content during the custom authentication step?
Thank you!

Hi @suhi,

We have a feature request in our backlog to support Javascript libraries within custom api authentication. I can let you know if our team is able to pick up that request.

Happy to take a look at some screenshots in the meantime