<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Feb 13, 2014 at 7:34 AM, Bengt Kleberg <span dir="ltr"><<a href="mailto:bengt.kleberg@ericsson.com" target="_blank">bengt.kleberg@ericsson.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Greetings,<br>
<br>
Is there an Erlang library that allows me to generate HTML from Erlang<br>
and that can stop ">" from turning into ">"?<br>
<br>
Previously I used<br>
xmerl:export_simple( [{html, [], [Body]}], xmerl_xml ).<br>
where Body could be {body, [], ["Some text with >"]}.<br>
xmerl will transform ">" into ">", but until now the HTML has worked<br>
well.<br>
<br>
Now I need to keep ">".</blockquote><div><br></div><div><div>1> yaws_api:ehtml_expand({body, [], [{p,[],"Some text with >"}]}).</div><div>["\n","<","body",[],">",</div>
<div> [["\n","<","p",[],">","Some text with >","</","p",">"]],</div><div> "</","body",">"]</div>
<div>2> lists:flatten(v(1)).</div><div>"\n<body>\n<p>Some text with ></p></body>"</div></div><div><br></div><div>--steve</div></div></div></div>