diff options
author | duponin <pwet@dupon.in> | 2022-05-19 01:38:13 +0200 |
---|---|---|
committer | duponin <pwet@dupon.in> | 2022-05-19 01:38:13 +0200 |
commit | b128e1d6c5bbc78874d05af2676550de80ae85c7 (patch) | |
tree | f5ed554a0852af5cca496b4c5e6ec0dc94311410 | |
parent | 5086d6d5e9ff68d6a7a82fd3ad6dbc0bad0b599c (diff) | |
download | pleroma-b128e1d6c5bbc78874d05af2676550de80ae85c7.tar.gz |
decode HTML to be human readable in BBS
-rw-r--r-- | lib/pleroma/bbs/handler.ex | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pleroma/bbs/handler.ex b/lib/pleroma/bbs/handler.ex index f1ac0c687..c2491a20c 100644 --- a/lib/pleroma/bbs/handler.ex +++ b/lib/pleroma/bbs/handler.ex @@ -43,7 +43,7 @@ defmodule Pleroma.BBS.Handler do def puts_activity(activity) do status = Pleroma.Web.MastodonAPI.StatusView.render("show.json", %{activity: activity}) IO.puts("-- #{status.id} by #{status.account.display_name} (#{status.account.acct})") - IO.puts(HTML.strip_tags(status.content)) + IO.puts(status.content |> HTML.strip_tags() |> HtmlEntities.decode()) IO.puts("") end |