aboutsummaryrefslogtreecommitdiff
path: root/src/xml.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/xml.erl')
-rw-r--r--src/xml.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xml.erl b/src/xml.erl
index 846d93c9b..592ad5b99 100644
--- a/src/xml.erl
+++ b/src/xml.erl
@@ -66,7 +66,7 @@ element_to_string_nocatch(El) ->
[$<, Name, attrs_to_list(Attrs), $/, $>]
end;
%% We do not crypt CDATA binary, but we enclose it in XML CDATA
- {xmlcdata, CData} when binary(CData) ->
+ {xmlcdata, CData} when is_binary(CData) ->
?ESCAPE_BINARY(CData);
%% We crypt list and possibly binaries if full XML usage is
%% disabled unsupported (implies a conversion to list).