fix content not escaping html properly

This commit is contained in:
2025-02-15 02:44:49 +00:00
parent c25e02dee1
commit 64bf39da29
2 changed files with 3 additions and 0 deletions

View File

@ -139,6 +139,8 @@ defmodule MemexWeb.CoreComponents do
defp display_links(record) do
record
|> get_content()
|> Phoenix.HTML.html_escape()
|> Phoenix.HTML.safe_to_string()
|> replace_hyperlinks(record)
|> replace_triple_links(record)
|> replace_double_links(record)