Skip to content

Commit

Permalink
Fix typo in javascript_escape/1 docs (#438)
Browse files Browse the repository at this point in the history
  • Loading branch information
jelligett authored Jan 21, 2024
1 parent 536f31b commit c50f33d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/phoenix_html.ex
Original file line number Diff line number Diff line change
Expand Up @@ -295,7 +295,7 @@ defmodule Phoenix.HTML do
defp attr_escape(other), do: Phoenix.HTML.Safe.to_iodata(other)

@doc """
Escapes HTML content to be inserted a JavaScript string.
Escapes HTML content to be inserted into a JavaScript string.
This function is useful in JavaScript responses when there is a need
to escape HTML rendered from other templates, like in the following:
Expand Down

0 comments on commit c50f33d

Please sign in to comment.