From c50f33d20f98f6fa2a07f42fc00b3ce8c6c341ba Mon Sep 17 00:00:00 2001 From: James Elligett Date: Sun, 21 Jan 2024 18:56:55 +1100 Subject: [PATCH] Fix typo in javascript_escape/1 docs (#438) --- lib/phoenix_html.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/phoenix_html.ex b/lib/phoenix_html.ex index 9cf5cb3..0494ea5 100644 --- a/lib/phoenix_html.ex +++ b/lib/phoenix_html.ex @@ -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: