A
A
Alexv012015-06-28 11:37:37
PHP
Alexv01, 2015-06-28 11:37:37

Simple_html_dom removes all line breaks, how to treat?

$html->load_file(" simplehtmldom.sourceforge.net ");
echo $html->save('data2.html');
Removes all line breaks, how can I fix it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DevMan, 2015-06-28
@Alexv01

require 'simple_html_dom.php';
$html = file_get_html('http://simplehtmldom.sourceforge.net/', false, null, -1, -1, true, true, DEFAULT_TARGET_CHARSET, false);
echo $html->save('result.htm');

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question