Extract LiveTestHelpers.escape/1

This commit is contained in:
Claudio Ortolina
2025-01-19 16:14:59 +00:00
parent ed9fb25ece
commit 53d82e661a
6 changed files with 8 additions and 24 deletions
+7
View File
@@ -0,0 +1,7 @@
defmodule MusicLibraryWeb.LiveTestHelpers do
def escape(string) do
string
|> Phoenix.HTML.html_escape()
|> Phoenix.HTML.safe_to_string()
end
end