adamwathan / bootforms

Rapid form generation with Bootstrap 3 and Laravel.
MIT License
417 stars 103 forks source link

Laravel 5 prints HTML escaped instead of non-escaped #41

Closed crazycodr closed 9 years ago

crazycodr commented 9 years ago

First time around with BootForms and i'm trying it with Laravel 5 right now and if i:

{{ BootForm::Open()->post()->action('/data/exalted-types/store') }}
{{ BootForm::Close() }}

It simply outputs

<form method="POST" action="/data/exalted-types/store"> </form>

But this is escaped HTML that can be viewed in the browser, the real code output is:

&lt;form method=&quot;POST&quot; action=&quot;/data/exalted-types/store&quot;&gt;
&lt;/form&gt;

What am i doing wrong?

Not sure this is Laravel 5 specific, this could be due to my inexperience!

crazycodr commented 9 years ago

Never mind that, hope this helps: https://laracasts.com/discuss/channels/general-discussion/laravel-5-printing-out-form-code-as-plain-text?page=1

Use {!! BootForm::something() !!}