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