diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2011-06-11 23:28:10 +1000 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2011-06-11 23:28:10 +1000 |
commit | f4d0b201adf2eff63cdc0c4d2197e90809e35198 (patch) | |
tree | 4cdf8bcfa0b91a6893f7c1574d66b8311dbaafae /src/xml.erl | |
parent | Fix 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.erl | 1 |
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) -> $> -> ">"; $" -> """; $' -> "'"; + _ when is_list(C); is_binary(C) -> crypt(C); _ -> C end || C <- S]; crypt(S) when is_binary(S) -> |