mirror of
https://git.pleroma.social/pleroma/pleroma.git
synced 2025-02-02 04:12:22 +00:00
decode HTML to be human readable in BBS
This commit is contained in:
parent
5086d6d5e9
commit
b128e1d6c5
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ defmodule Pleroma.BBS.Handler do
|
||||||
def puts_activity(activity) do
|
def puts_activity(activity) do
|
||||||
status = Pleroma.Web.MastodonAPI.StatusView.render("show.json", %{activity: activity})
|
status = Pleroma.Web.MastodonAPI.StatusView.render("show.json", %{activity: activity})
|
||||||
IO.puts("-- #{status.id} by #{status.account.display_name} (#{status.account.acct})")
|
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("")
|
IO.puts("")
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue