[erlang-questions] beginner: Generating HTML with ">" from Erlang

Carsten Bormann cabo@REDACTED
Thu Feb 13 14:01:37 CET 2014


Fix this:

otp/lib/xmerl/src/xmerl_lib.erl

%% Escape special characters `<' and `&', flattening the text.
%% Also escapes `>', just for symmetry.
…
export_text([$> | T], Cont) ->
    ">" ++ export_text(T, Cont);


The ]]> is (very rarely) a valid concern in XML; I don’t think it ever is in HTML.

Grüße, Carsten




More information about the erlang-questions mailing list