[erlang-questions] erlsom:write encode ">"

Anders Nygren anders.nygren@REDACTED
Sat Jun 21 16:50:30 CEST 2008


Hi
erlsom:write does not encode ">" to ">"

this patch fixes that.

/Anders

Index: lib/erlsom/src/erlsom_write.erl
===================================================================
--- lib/erlsom/src/erlsom_write.erl     (revision 1051)
+++ lib/erlsom/src/erlsom_write.erl     (working copy)
@@ -648,6 +648,7 @@
 escapeChar(38) -> "&";
 escapeChar(34) -> """;
 escapeChar(60) -> "<";
+escapeChar(62) -> ">";
 escapeChar(Char) -> Char.

 decodeIfRequired(Text) when is_binary(Text) ->



More information about the erlang-questions mailing list