0
Laravel을 사용하여 주석 시스템을 작성하고 있습니다. 주석 행이 하나의 문자열로 표시되어 데이터베이스에서 주석이 제거 된 후 주석 줄 바꿈이 제거되는 것을 제외하고는 모두 잘 작동합니다. 내 응용 프로그램의 보안을 침해하지 않고 입력 한 방식으로 사용자 컨텐트를 표시하려면 어떻게해야합니까?Laravel을 사용하여 주석 시스템에 줄 바꿈 표시
<div class="comments">
<h3 class="comments-title"><span class="glyphicon glyphicon-comment"></span> {{ $post->comments()->count()}} Comments</h3>
@foreach($post->comments as $comment)
<div class="comment-content col-md-12">
{{ $comment->comment }}
</div>
</div>
@endforeach
</div>