Use LazyHTML to escape markup in test
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
defmodule MusicLibraryWeb.LiveTestHelpers do
|
defmodule MusicLibraryWeb.LiveTestHelpers do
|
||||||
def escape(string) do
|
def escape(string) do
|
||||||
string
|
LazyHTML.html_escape(string)
|
||||||
|> Phoenix.HTML.html_escape()
|
|
||||||
|> Phoenix.HTML.safe_to_string()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def trigger_hook(session, selector, hook, params \\ %{}) do
|
def trigger_hook(session, selector, hook, params \\ %{}) do
|
||||||
|
|||||||
Reference in New Issue
Block a user