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

Сергей Прохоров <>
Thu Feb 13 15:35:02 CET 2014

I'm sure, that embedded Javascript understands > and < instead of >
and < characters, so

if (a &gt b) alert("a greater than b");

should work.

You may also try Mochiweb's HTML parser/serializer, which is much simpler
and faster, than xmerl

Tree = {<<"html">>, [{<<"lang">>, <<"en">>}],
            [...child tags...]},

But I'm not sure if it escapes special characters.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20140213/78fca89b/attachment.html>

More information about the erlang-questions mailing list