I've got a client who wants their videos (provided by a third party) displayed on their web site. The web site uses swfobject to display the video, so I thought that it would be easiest to grab that and slightly modify it so that it works on the client's web site.
Using PHP DOMDocument seems the way to go, but unfortunately the HTML that is provided is malformed and causes a heart attack. Is it possible to get it to ignore the errors in the HTML, or an alternative way that I can do this?