We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 671042c commit 053861dCopy full SHA for 053861d
lib/phoenix_html/engine.ex
@@ -146,8 +146,9 @@ defmodule Phoenix.HTML.Engine do
146
# We need to check at runtime and we do so by optimizing common cases.
147
defp to_safe(expr, line) do
148
# Keep stacktraces for protocol dispatch and coverage
149
+ # bin_return uses generated: true to make Elixir's type system on v1.19 happy
150
safe_return = quote line: line, do: data
- bin_return = quote line: line, do: Phoenix.HTML.Engine.html_escape(bin)
151
+ bin_return = quote line: line, generated: true, do: Phoenix.HTML.Engine.html_escape(bin)
152
other_return = quote line: line, do: Phoenix.HTML.Safe.to_iodata(other)
153
154
# However ignore them for the generated clauses to avoid warnings
0 commit comments