PHP DOMNode HTML eklemek nasıl?

0 Cevap php

Ben içerik kodlanmış olmadan mevcut DOMNode html şablon ekleyebilirsiniz herhangi bir yolu var mı?

Ben bunu denedim

$dom->createElement('div', '<h1>Hello world</h1>');
$dom->cteateTextNode('<h1>Hello world</h1>');

the output is prety much the same, with only difference that first code would wrap it in to div. I have tried to loadHTML from string but I have no idea how can I append it's body content to another DOMDocument.

Javascript Bu işlem oldukça basit ve açık gibi görünüyor.

0 Cevap