I've tested this on a vanilla 1.5.7c installation and found that since CKEditor is loaded by default on the orders details page, any comments typed in here will show all the html formatting when viewing the order information in the right hand pane of the order summary page.
Comments
<p>let's test this idea out shall we</p>
<p> </p>
<p><span style="font-size:12px;"><span style="font-family:Arial,Helvetica,sans-serif;"><span style="background-color:#c0392b;">Does it have raw html code?</span></span></span></p>
<p> </p>
<p> </p>
Doesn't make for very easy reading.
I could just change
Code:
$contents[] = array('text' => nl2br(zen_output_string_protected($orders_history_query->fields['comments'])));
to
Code:
$contents[] = array('text' => nl2br(zen_output_string($orders_history_query->fields['comments'])));
but I assume you have used zen_output_string_protected rather than zen_output_string for a reason.
Is there a fix for this so the admin posted comments display in a easy to read format?
Bookmarks