Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
setValue を持つ基本的な ExtJs テキストエリアがあります。値は、データベースから文字列として ExtJs に送られます。
文字列は php で作成されます。HTML をサポートしていないため、動作しません<br>。
<br>
また\r\n 、 or \nor \ \r\ \norを無視するようです\ \n-単にテキストとして出力します。
\r\n
\n
\ \r\ \n
\ \n
回避策はありますか?
ストア内のデータ型が文字列の場合、ext が何らかの形ですべてをエスケープしたようです (いくつかの ASCII 値が設定されていると思います)。
文字列を setValue() に直接追加すると、\n で機能します。
回避策として、カスタム palceholder %nl を使用し、js 置換を使用して \non setValue() に変更しました。