Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
629 views
in Q2A Core by

I try to figue the problem with php warning headers not found.

So I need to know what: function output_raw($html) is doing.

        function output_raw($html)
    /*
        Output $html at the current indent level, but don't change indent level based on the markup within.
        Useful for user-entered HTML which is unlikely to follow the rules we need to track indenting
    */
        {
            if (strlen($html))
                echo str_repeat("\t", max(0, $this->indent)).$html."\n";
        }

 

Do I understand correctly that it just adds TAB jumps to indent the HTML code?

Could I replace it with:

            if (strlen($html))
                echo $html."\n";

?

Thanks!

Q2A version: 1.5.3

1 Answer

0 votes
by
Yes, it just adds TAB jumps to indent the HTML code.

But be aware that the JS in q2a v1.5.4 and lower need those indents and new lines for correct javascript parsing, see: http://www.question2answer.org/qa/20452/necessary-core-changes-for-correct-javascript-syntax-5-1-5-4
...