entonces escápalas:
\"Texto alt\" Código PHP:
echo "<table width='740' border='0'><tr><td colspan='2'><h4>$row[titulo]</h4></td></tr><td width='393' height='137'><p>$row[texto]</p></td>
<td width='195'><a href='javascript:popImage($foto,\"Texto alt\")'><img src='$foto' alt='Haz click para ver imagen mas grande' width='100' height='100' border='0'/></a></td></table><br>";