diff options
author | Badlop <badlop@process-one.net> | 2010-03-08 12:41:11 +0100 |
---|---|---|
committer | Badlop <badlop@process-one.net> | 2010-03-08 12:41:11 +0100 |
commit | 6bde01cd45ed9f37a45d48c1b999ad29b1fbbf49 (patch) | |
tree | 7bb3a425e01f337ed48a6a11772fa1b51fe171fc /src/xml.erl | |
parent | Catch errors when exporting to PIEFXIS file (EJAB-1178) (diff) |
Replace concat_binary supported until R14 with list_to_binary supported since R9
Diffstat (limited to 'src/xml.erl')
-rw-r--r-- | src/xml.erl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xml.erl b/src/xml.erl index b33516d83..96d0b2189 100644 --- a/src/xml.erl +++ b/src/xml.erl @@ -99,12 +99,12 @@ make_text_node(CData) -> cdata -> CDATA1 = <<"<![CDATA[">>, CDATA2 = <<"]]>">>, - concat_binary([CDATA1, CData, CDATA2]); + list_to_binary([CDATA1, CData, CDATA2]); none -> CData; {cdata, EndTokens} -> EscapedCData = escape_cdata(CData, EndTokens), - concat_binary(EscapedCData) + list_to_binary(EscapedCData) end. %% Returns escape type needed for the text node |