aboutsummaryrefslogtreecommitdiff
path: root/src/xml.erl
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2011-06-11 23:28:10 +1000
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2011-06-11 23:28:10 +1000
commitf4d0b201adf2eff63cdc0c4d2197e90809e35198 (patch)
tree4cdf8bcfa0b91a6893f7c1574d66b8311dbaafae /src/xml.erl
parentFix compilation in Windows (thanks to flyingwow99) (diff)
Escape iolist correctly when NIFs are disabled (EJAB-1462)
Diffstat (limited to 'src/xml.erl')
-rw-r--r--src/xml.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/xml.erl b/src/xml.erl
index 1fca171ec..da7b5f8d3 100644
--- a/src/xml.erl
+++ b/src/xml.erl
@@ -111,6 +111,7 @@ crypt(S) when is_list(S) ->
$> -> "&gt;";
$" -> "&quot;";
$' -> "&apos;";
+ _ when is_list(C); is_binary(C) -> crypt(C);
_ -> C
end || C <- S];
crypt(S) when is_binary(S) ->