Liquex.Filter.newline_to_br

You're seeing just the function newline_to_br, go back to Liquex.Filter module for more information.

Specs

newline_to_br(String.t(), Liquex.Context.t()) :: String.t()

Replaces every newline ( ) in a string with an HTML line break (<br />).

Examples

iex> Liquex.Filter.newline_to_br("\nHello\nthere\n", %{})
"<br />\nHello<br />\nthere<br />\n"