xml builder: properly escape quotes
This commit is contained in:
parent
582bd9d170
commit
80759f012e
@ -35,6 +35,7 @@ defmodule Pleroma.XmlBuilder do
|
|||||||
defp make_open_tag(tag, attributes) do
|
defp make_open_tag(tag, attributes) do
|
||||||
attributes_string =
|
attributes_string =
|
||||||
for {attribute, value} <- attributes do
|
for {attribute, value} <- attributes do
|
||||||
|
value = String.replace(value, "\"", """)
|
||||||
"#{attribute}=\"#{value}\""
|
"#{attribute}=\"#{value}\""
|
||||||
end
|
end
|
||||||
|> Enum.join(" ")
|
|> Enum.join(" ")
|
||||||
|
Loading…
Reference in New Issue
Block a user