php-html-parser icon indicating copy to clipboard operation
php-html-parser copied to clipboard

Adding a line break

Open aaharoni opened this issue 4 years ago • 3 comments

Hi,

I want to add 2 script tags to my document, as follows: $_document->find("body")->addChild(new TextNode("")); $_document->find("body")->addChild(new TextNode(""));

it adds them both to the same line. How can I add them on separate lines?

Thanks

aaharoni avatar Mar 22 '21 07:03 aaharoni

anyone?

aaharoni avatar Mar 24 '21 07:03 aaharoni

Have you tried adding \n?

danslo avatar Mar 29 '21 13:03 danslo

Hi, thanks. Yes, of course.. But it doesn't work.

aaharoni avatar Mar 29 '21 14:03 aaharoni