Commit 83af9708 authored by Francois Cartegnie's avatar Francois Cartegnie

http intf: fix unescaped xml entities

parent 982c2aea
......@@ -49,7 +49,7 @@ local item = vlc.input.item()
if item then
local metas = item:metas()
for k,v in pairs(metas) do
print("<info name='"..k.."'>"..vlc.strings.convert_xml_special_chars(v).."</info>")
print("<info name='"..vlc.strings.convert_xml_special_chars(k).."'>"..vlc.strings.convert_xml_special_chars(v).."</info>")
end
end
?>
......@@ -58,9 +58,9 @@ local item = vlc.input.item()
if item then
local info = item:info()
for k, v in pairs(info) do
print("<category name='"..k.."'>")
print("<category name='"..vlc.strings.convert_xml_special_chars(k).."'>")
for k2, v2 in pairs(v) do
print("<info name='"..k2.."'>"..vlc.strings.convert_xml_special_chars(v2).."</info>")
print("<info name='"..vlc.strings.convert_xml_special_chars(k2).."'>"..vlc.strings.convert_xml_special_chars(v2).."</info>")
end
print("</category>")
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment