decode HTML to be human readable in BBS
This commit is contained in:
parent
5086d6d5e9
commit
b128e1d6c5
|
@ -43,7 +43,7 @@ defp loop(state) 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue