I obtain the page via cURL so I have no control over it but I want to remove and element and its contents, say <div1> in the following:
<body>This is a page.<div1>This is some rubbish information</div1> This is useful information.</body>
So that it output:
<body>This is a page. This is useful information.</body>
Thanks in advance.