You can use the DOM to loop through the child nodes of body (probably recursively), collecting the nodeValue properties of the text nodes (those are the bits containing "This is the first field " and such) and, where you encounter an input element, getting its value property instead. Build all of that text up into a string and you're there.

Some references:


DOM2 Core
DOM2 HTML
DOM3 Core
HTML5 Web Application APIs


JavaScript to paste form input in-line into body text
I set this tick box in the performance area, and on clicking Save I now cannot access the site, even the performance area to disable this! any one know if I can directly change this in the DatabasE?

EDIT: 
I have refreshed the Database, thankfully no updates since it went live. This does raise the question though as I'm not the only one who has had problems with these performance tick boxes, how do you back out of an error?

I would still like the answer cause i'm trying to get to the bottom of these performance settings.

thanks for any replies. 
