nl2br
phtml上に
= nl2br(escape($title))?>
というような感じで書くと、
ウェブページ上で以下のようになる。
○○○○○
××××××
△△△△△△△△△△
DBには、○○○○○\n××××××\n\n△△△△△△△△△△ というデータが入っている。
More than 5 years have passed since last update.
nl2br
phtml上に
= nl2br(escape($title))?>
というような感じで書くと、
ウェブページ上で以下のようになる。
○○○○○
××××××
△△△△△△△△△△
DBには、○○○○○\n××××××\n\n△△△△△△△△△△ というデータが入っている。
Register as a new user and use Qiita more conveniently