Markdown Editor

Hi, I wonder if there's a helper or something that lets you convert anything that user put in Markdown Editor to acctual html? Because right now when i send data with form i get everything i typed in input like
**test**
_ttt_
~~ttt~~
**test**
_ttt_
~~ttt~~
Instead of
<b>test</b>
...
<b>test</b>
...
2 Replies
awcodes
awcodes2y ago
use Illuminate\Support\Str;

$html = Str::markdown('# Laravel');
use Illuminate\Support\Str;

$html = Str::markdown('# Laravel');
Magikstah
MagikstahOP2y ago
Thank you! 🙂

Did you find this page helpful?