JavaScript を使用して、Adobe Captivate 9 のテキスト キャプションに文字列を表示しようとしています。レスポンシブでないプロジェクトを使用していますが、以下のコードでは常に改行の最初の「br」タグが表示されます。「br」タグを削除すると、「br」タグuserResults
がtopTenUsers
表示されます。
ただし、レスポンシブ プロジェクトでは、同じコードに「br」タグが表示されません。
コード:
var userResults = 'You placed at rank ' + myRank + ' with a score of ' + myScore + '<br>' + '<br>';
var topTenUsers = 'The top ' + numPlayers + ' users are: <br>';
var topTenMsg = userResults + ' ' + topTenMsg;
window.cpAPIInterface.setVariableValue(topTenVarName, topTenMsg);
この違いの原因は何ですか?どうすれば回避できますか?