M
M
Mouvdy2015-04-05 16:09:53
Parsing
Mouvdy, 2015-04-05 16:09:53

Simple HTML DOM Parser - how to add "hello world" after the tag?

Greetings,
Can you tell me how to use Simple HTML DOM Parser - how to add hello world after the opening tag without changing its content?
And a quick question:
Is it possible for the parser to substitute the full paths of the site after parsing in the entire site (otherwise it turns out localhost/site_page ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Mouvdy, 2015-04-05
@Mouvdy

Understood the first part

$inject = 'hello world'; 
$html->find('body', 0)->innertext = $inject.$html->find('body', 0)->innertext;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question