http://pastebin.com/pVqAxv1Z

I'm looking to 'get' a page, seperate what's between the custom <edit> tags and place it in the current page to a specific element. Currently the function is putting...