ここに私のコードがあります:
<td onclick="openFile('<?php echo htmlentities ($row['name'])?>','
<?php echo htmlentities ($row['content'])?>')">
<a href="#nf" data-toggle="tab"><?php echo $row['name']?></a></td>
$row['content'] に endline char があるため:
openFile('うわー','うわーうわー
おお ');
ブラウザが同じ行で末尾の qoutes を見つけられない場合、ブラウザは
エラー (SyntaxError: 終了していない文字列リテラル [このエラーでブレーク])。
これに対する解決策はありますか?