I want to load a script which performs document.write(s) to display HTML content. Usually, if one was to simply embed the script where the content should appear, it would be good enough BUT not in my case. I need to further enhance the content using jQuery so I want to find out: How to load a script such that its document.write goes into a hidden element for manipulation?
And let me say up-front that the script’s use of document.write is not under my control … so please don’t answer with a best-practice 😉
Using http://github.com/iamnoah/writeCapture/ is the solution for this question.