So, say I have my website:
<div id="MySiteDIV">
<!-- Content in here -->
</div>
And the other persons website:
<div id="CTs_g">
<p>Hello</p>
<div id="AG_g">This is my website</div>
</div>
How do I get the HTML and all so on my website it would end up looking like:
<div id="MySiteDIV">
<!-- Content in here -->
<div id="CTs_g">
<p>Hello</p>
<div id="AG_g">This is my website</div>
</div>
</div>
I've seen (and tried) the DOMDocument()
but it seemed to only get me the contents but I need the HTML.