I have the following hunk of code in a document:
This hunk is included in a string which is printed to a javascript window using windowName.document.writeln(\"".$report."); from php.
How can i take care of the double quote's on the on click event above, which is causing problems.
Thanks
Code:
$report .= "<td><span class='receipt'><a href='receipt.php?interfaceordernum=".$curOrder->id."' onclick=\"window.open(this.href,'_blank');return false;\">".$curOrder->id."</a></span></td>";
This hunk is included in a string which is printed to a javascript window using windowName.document.writeln(\"".$report."); from php.
How can i take care of the double quote's on the on click event above, which is causing problems.
Thanks