How to render user inputted html safely with phoenix

You could use both (kind of like how this editor works) and use the markdown_html/1 function in the HTML Sanitizer package.