Code: Select all
<?php
$html .= "<tr class="msgTitle_" . $messageType . "Message">";
$html .= "<td class="msgImageHolder" rowspan="2" onclick="flick( $jsScript );return false;">";
$html .= $imgHandler . $this->_msgReadYet( $message['read_yet'] ) . $this->_msgFromIcon( $message['alliance'] ) . "</td>";
$html .= "<td colspan="2">" . $message['title'] . " - [" . $message['date'] . "::" . $message['time'] . "]</td>";
?>This is sample code.
Return $html; gives me jumbled together HTML.
I am TRYING to create clean code for the output.
I want each HTML Tag to be on a newline in the resultant PHP->Output.
In other words, when I run the script... And I get an HTML page, I want to view source and SEE a clean HTML Code.
Can anyone help me out here?
I have tried nl2br, but this puts <br /> EVERYWHERE! No good... I just need each HTML Tag to be on a new line... HELP!