ウォール JS に facebook の投稿を使用しています。投稿の情報は php 経由でエコーされますが、コンソールに次のエラーが表示されます。
SyntaxError: unterminated string literal
description: 'Well, personal favorite in the following order.<br />
これは API 呼び出しの行です
description: '<?php echo $info['definition'] ?>'
これは SQL データベースの $info['definition'] 文字列です。
Well, personal favorite in the following order.
1. A stalkers dream come true
2. The reason most work are never done on time.
See what I mean with the examples.
他の文字列を使用して直接入力すると、スクリプト エラーが表示されません。文字列をエスケープして API 呼び出しで機能させるにはどうすればよいですか?