[erlang-questions] XMERL Atr String Escaping
Anthony Jackson
anthony.jackson@REDACTED
Fri Jan 23 12:19:48 CET 2015
Hi
It would seem that XMERL doesn’t escape greater than characters in Attribute strings.
Is this a bug, or is this intentional?
Function to look at is ./xmerl-1.3.6/src/xmerl_lib.erl -> export_attribute/2
12> f(Packet), Packet = [{ussd,[ {'STRING',"this has > escape"}],["this has > escape", {cookie,[],[]}]}].
[{ussd,[{'STRING',"this has > escape"}],
["this has > escape",{cookie,[],[]}]}]
13> lists:flatten(xmerl:export_simple(Packet, xmerl_xml)).
"<?xml version=\"1.0\"?><ussd STRING=\"this has > escape\">this has > escape<cookie/></ussd>”
--
Anthony
More information about the erlang-questions
mailing list