I'm putting some page content (which has been run through Tidy, but doesn't need to be if this is a source of problems) into DOMDocument
using DOMDocument::loadHTML
.
It's coming up with various errors:
ID x already defined in Entity, line X
Is there any way to make either DOMDocument
(or Tidy) ignore or strip out duplicate element IDs, so it will actually create the DOMDocument
?
Thanks. :)