aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRoger Braun <roger@rogerbraun.net>2017-07-31 10:46:29 +0200
committerRoger Braun <roger@rogerbraun.net>2017-07-31 10:46:29 +0200
commit2eba8e74ccf2de0ad65b213bb166917c32db9d68 (patch)
tree1dc69e52c5e388947f4e947e91eed3e047c998d3 /lib
parentfc269fd319a77c6f7dd3ac340c6306f74ec35ce8 (diff)
downloadpleroma-2eba8e74ccf2de0ad65b213bb166917c32db9d68.tar.gz
Close br tags.
Diffstat (limited to 'lib')
-rw-r--r--lib/pleroma/web/twitter_api/utils.ex4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/pleroma/web/twitter_api/utils.ex b/lib/pleroma/web/twitter_api/utils.ex
index 2c3507dfb..7f305c863 100644
--- a/lib/pleroma/web/twitter_api/utils.ex
+++ b/lib/pleroma/web/twitter_api/utils.ex
@@ -15,13 +15,13 @@ defmodule Pleroma.Web.TwitterAPI.Utils do
"<a href=\"#{URI.encode(href)}\" class='attachment'>#{Path.basename(href)}</a>"
_ -> ""
end)
- Enum.join([text | attachment_text], "<br>\n")
+ Enum.join([text | attachment_text], "<br />\n")
end
def format_input(text, mentions) do
HtmlSanitizeEx.strip_tags(text)
|> Formatter.linkify
- |> String.replace("\n", "<br>\n")
+ |> String.replace("\n", "<br />\n")
|> add_user_links(mentions)
end