When doing markdown to HTML, sanitize HTML

Closes #101
Closes #102
This commit is contained in:
Claudio Ortolina
2026-03-07 19:05:37 +00:00
parent 84ffcc720b
commit 52815bde2f
8 changed files with 44 additions and 0 deletions
+1
View File
@@ -22,6 +22,7 @@ defmodule MusicLibraryWeb.Markdown do
markdown_text
|> process_double_bracket_links()
|> Earmark.as_html!(%Earmark.Options{gfm: true})
|> HtmlSanitizeEx.markdown_html()
{result, %{}}
end