Laravel Escaping All HTML in Blade Template

后端 未结 6 1642
迷失自我
迷失自我 2020-11-30 07:01

I\'m building a small CMS in Laravel and I tried to show the content (which is stored in the DB). It is showing the HTML tags instead of executing them. Its like there is an

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 07:37

    {{html_entity_decode ($post->content())}} saved the issue for me with Laravel 4.0. Now My HTML content is interpreted as it should.

提交回复
热议问题