Well, that is the pre-12 way to do things and was a bit of a pain. I also would set some limit to the number of loops if you want to use this. In 12, try the script step to "Insert from URL" directly into a field and it will pull the whole HTML (or PDF) text into the field and it won't continue until the function is complete. Much improved functionality!!!!
Yes, that works well, and totally slipped my mind. I'm actually using insert from URL as part of my solution to scrape images into container fields. I forgot you could use it as well to scrape html into text fields.
Thanks for the reminder!