$HTMLcodeOutput = tidy_repair_string($HTMLcode, array('show-body-only' => true, 'indent' => true));
will remove $ htmlcode 'end of line. Example:
that in the main box
it does everything
Will output
that in the main box
This would not be a problem if this line were not reflected in the <pre> after that. Thus, the character \ n or \ r is important. I looked at the documentation but did not find anything obvious.
Is there any way to keep these string return characters?
(Adding tags before using a neat line fix is a bad idea, as this will cause the <pre> tags to be repeated as visible in the browser as strings (decoded), and not as tags.)
source
share