Fix HTML escape breaking some links.
This commit is contained in:
parent
afd0ea37f3
commit
bf91e5659f
2 changed files with 11 additions and 2 deletions
|
|
@ -58,8 +58,8 @@ defmodule Pleroma.Web.CommonAPI.Utils do
|
|||
end
|
||||
|
||||
def format_input(text, mentions, _tags) do
|
||||
Phoenix.HTML.html_escape(text)
|
||||
|> elem(1)
|
||||
text
|
||||
|> Formatter.html_escape
|
||||
|> Formatter.linkify
|
||||
|> String.replace("\n", "<br>")
|
||||
|> add_user_links(mentions)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue