F
Filamentβ€’2y ago
Magikstah

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
awcodesβ€’2y ago
use Illuminate\Support\Str;

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

$html = Str::markdown('# Laravel');
Magikstah
MagikstahOPβ€’2y ago
Thank you! πŸ™‚
Want results from more Discord servers?
Add your server