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. :)
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…