X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fformatter.ex;h=048c032ed2a5be1ac4c2489e6a79474b9c2feaa1;hb=2ec8cf566569912b767e15ab467cadd04fd1fd1c;hp=51d08c5ee7b3e88b3360d625f4f4c8b3a8a1a261;hpb=1c265b3b19bacd2e0a9ccfee0f7e53a59d83a621;p=akkoma diff --git a/lib/pleroma/formatter.ex b/lib/pleroma/formatter.ex index 51d08c5ee..048c032ed 100644 --- a/lib/pleroma/formatter.ex +++ b/lib/pleroma/formatter.ex @@ -91,6 +91,10 @@ defmodule Pleroma.Formatter do def get_emoji(_), do: [] + def html_escape({text, mentions, hashtags}, type) do + {html_escape(text, type), mentions, hashtags} + end + def html_escape(text, "text/html") do HTML.filter_tags(text) end