If the HTML string can be parsed as XML, you can do this (after clearing the element of all child nodes): $fragment = $doc->createDocumentFragment(); ...
確定! 回上一頁