Any ideas? Sorry for the bump.
Mar 23, 2015
7
Level 6
Security when rendering Markdown?
I am using Markdown to render content from forum posts.
{!! Markdown::convertToHtml($post->content) !!}
I need to escape the content in order to parse it into HTML, but security wise, is it safe to do so? Is there a better way to do this?
Thanks.
Level 65
I used this before to render mine but maybe there's a better way (haven't chekeed what e() uses).
{{ Markdown::render(htmlentities($content, ENT_NOQUOTES, "UTF-8")) }}
1 like
Please or to participate in this conversation.