改行を含むテキストを含むノックアウトオブザーバブルがあります。
このような:
var str += item.first_name + " " + item.last_name + "," + item.occupation + "\n\n";
str += "RE :" + item.first_name + " " + item.last_name + ", DOB: "
+ item.date_of_birth + "\n";
text = ko.observable(str);
文字列を表示するために使用している方法は次のとおりです。
$pdf->MultiCell(0,8,$text);
私のpdfで得られる結果は次のとおりです。
Dr. Bart grahamson,MBBSRE :Jack Junior, DOB: 1985-01-02
これらの改行をキャッチする方法は何ですか?