Browse Source

common api: utils: remove newline to <br> conversion from bare HTML to be consistent with markdown

ok @lanodan
tags/v0.9.9
William Pitcock 5 years ago
parent
commit
0bdbd4f968
1 changed files with 0 additions and 1 deletions
  1. +0
    -1
      lib/pleroma/web/common_api/utils.ex

+ 0
- 1
lib/pleroma/web/common_api/utils.ex View File

@@ -136,7 +136,6 @@ defmodule Pleroma.Web.CommonAPI.Utils do
def format_input(text, mentions, _tags, "text/html") do
text
|> Formatter.html_escape("text/html")
|> String.replace(~r/\r?\n/, "<br>")
|> (&{[], &1}).()
|> Formatter.add_user_links(mentions)
|> Formatter.finalize()


Loading…
Cancel
Save