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.
送信時にDBに入れられ、他の場所のtd要素に取り込まれるテキストエリアがあります。
テキストエリアに戻すと、元の書式が維持されます。ただし、td に入る必要がありますが、キャリッジ リターンは無視されます。
textarea から td またはおそらくフォーム以外の別の HTML 要素にコンテンツを取得し、少なくとも改行を保持するにはどうすればよいですか?
nl2br()関数を見てください。