diff --git a/lib/service/formatter/html.ex b/lib/service/formatter/html.ex index 67948d030..7ee4a3a81 100644 --- a/lib/service/formatter/html.ex +++ b/lib/service/formatter/html.ex @@ -42,6 +42,7 @@ defmodule Mobilizon.Service.Formatter.HTML do def strip_tags_and_insert_spaces(html), do: html @spec html_to_text(String.t()) :: String.t() + def html_to_text(nil), do: nil def html_to_text(html) do html |> String.replace(~r/