I’m using PHP simple html dom to edit some html files. The problem is that when I save, it deletes all carriage returns. How can I preserve them?
Thanks
I’m using PHP simple html dom to edit some html files. The problem is
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The API documentation doesn’t show them, but
file_get_htmlandstr_get_htmlfunctions have a bunch of extra fun parameters, just open upsimple_html_dom.php:Maybe you could set
$stripRNto false, which would otherwise do this insimple_html_dom->prepare():