don't do xml_escape just yet

This commit is contained in:
Peter Zingg 2022-12-17 08:18:05 -08:00
parent 4cafb8a89a
commit b63d3bcec6
1 changed files with 2 additions and 3 deletions

View File

@ -106,11 +106,10 @@ defmodule Pleroma.Web.Feed.FeedView do
end
end
def escape(str) do
str
def escape(html) do
html
|> html_escape()
|> safe_to_string()
|> xml_escape()
end
# Encoding newlines, e.g., per XML spec