Use LazyHTML to escape markup in test

This commit is contained in:
Claudio Ortolina
2025-08-05 09:06:58 +03:00
parent 3f0b33e654
commit 64fdea7e9d
+1 -3
View File
@@ -1,8 +1,6 @@
defmodule MusicLibraryWeb.LiveTestHelpers do
def escape(string) do
string
|> Phoenix.HTML.html_escape()
|> Phoenix.HTML.safe_to_string()
LazyHTML.html_escape(string)
end
def trigger_hook(session, selector, hook, params \\ %{}) do