laravel / tinker

Powerful REPL for the Laravel framework.
https://laravel.com/docs/artisan#tinker
MIT License
7.32k stars 130 forks source link

[2.x] Add HtmlString caster #87

Closed GrahamCampbell closed 4 years ago

GrahamCampbell commented 4 years ago

Before:

>>> Illuminate\Mail\Markdown::parse("### test\n");
=> Illuminate\Support\HtmlString {#3811}

After:

>>> Illuminate\Mail\Markdown::parse("### test\n");
=> Illuminate\Support\HtmlString {#4008
     html: "<h3>test</h3>\n",
   }