Don't strip newlines in pre #709
1 changed files with 1 additions and 3 deletions
|
@ -78,9 +78,7 @@ def activity_title(%{"content" => content}, opts \\ %{}) do
|
||||||
end
|
end
|
||||||
|
|
||||||
def activity_content(%{"content" => content}) do
|
def activity_content(%{"content" => content}) do
|
||||||
content
|
escape(content)
|
||||||
|> String.replace(~r/[\n\r]/, "")
|
|
||||||
|> escape()
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def activity_content(_), do: ""
|
def activity_content(_), do: ""
|
||||||
|
|
Loading…
Reference in a new issue