When using PHP Simple HTML DOM Parser, is it normal that line breaks
tags are stripped out?
Was struggling with this as well, since I needed the HTML to be easily editable after processing.
Apparently there's a boolean in the SimpleHTMLDOM
script $stripRN
, that's set to true
on default. It strips the \r
, \n
or \r\n
tags in the HTML.
Set the var to false
(several occurences in the script..) and your problem is solved.