[erlang-questions] erlsom:write encode ">"
Willem de Jong
w.a.de.jong@REDACTED
Sun Jun 22 19:05:34 CEST 2008
I thought that that was not required. Just to be sure I had another look at
the spec, and found out that it is indeed not required, *except* if the
previous characters are "]]" ("for compatibility reasons"). In practice I
can't imagine that any parser would have problems with ">", but I'll change
it anyway to be fully conformant even in this special case.
Regards,
Willem
On Sat, Jun 21, 2008 at 4:50 PM, Anders Nygren <anders.nygren@REDACTED>
wrote:
> 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) ->
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://www.erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20080622/7cb04b1e/attachment.htm>
More information about the erlang-questions
mailing list