diff options
Diffstat (limited to '')
-rw-r--r-- | src/xml.erl | 2 |
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). |