X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;f=lib%2Fpleroma%2Fformatter.ex;h=048c032ed2a5be1ac4c2489e6a79474b9c2feaa1;hb=f635b675b2cc0bc10b395cd71ae1720b0696d364;hp=51d08c5ee7b3e88b3360d625f4f4c8b3a8a1a261;hpb=c3ac9424d2affe87df82c14dc243f507fa639343;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