<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">answering my own question:<div><br><div><div>unescape(<<>>) -> </div><div> <<>>;</div><div>unescape([]) -></div><div> <<>>;</div><div>unescape(L) when is_list(L) -></div><div> unescape(list_to_binary(L));</div><div>unescape(B) when is_binary(B) -></div><div> unescape(B, <<>>).</div><div><br></div><div>unescape(<<>>, Acc) -> </div><div> Acc;</div><div>unescape(<<" ", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, " ">>);</div><div>unescape(<<"&", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "&">>);</div><div>unescape(<<""", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "\"">>);</div><div>unescape(<<"'", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "\'">>);</div><div>unescape(<<"'", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "'">>);</div><div>unescape(<<"<", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "<">>);</div><div>unescape(<<">", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, ">">>);</div><div>unescape(<<"€", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "€">>);</div><div>unescape(<<"ç", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "ç">>);</div><div>unescape(<<"à", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "à">>);</div><div>unescape(<<"â", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "â">>);</div><div>unescape(<<"ä", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "ä">>);</div><div>unescape(<<"æ", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "æ">>);</div><div>unescape(<<"è", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "è">>);</div><div>unescape(<<"é", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "é">>);</div><div>unescape(<<"ê", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "ê">>);</div><div>unescape(<<"ë", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "ë">>);</div><div>unescape(<<"î", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "î">>);</div><div>unescape(<<"ï", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "ï">>);</div><div>unescape(<<"ö", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "ö">>);</div><div>unescape(<<"ù", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "ù">>);</div><div>unescape(<<"ú", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "ú">>);</div><div>unescape(<<"û", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "û">>);</div><div>unescape(<<"ü", T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, "ü">>);</div><div><br></div><div>unescape(<<C, T/binary>>, Acc) -></div><div> unescape(T, <<Acc/binary, C>>).</div></div><div><br></div><div><br></div><div><div>Regards,</div><div>Zabrane</div></div><div><br></div><div><div>On Sep 25, 2012, at 8:02 PM, Zabrane Mickael wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>Hi huis,</div><div><br></div><div>I want to convert an HTML escaped text (<a href="http://www.w3schools.com/tags/ref_entities.asp">http://www.w3schools.com/tags/ref_entities.asp</a>) like this one:</div><div><br></div>bourg<span style="color: rgb(0, 0, 0); font-family: verdana, helvetica, arial, sans-serif; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; background-color: rgb(255, 255, 255); display: inline !important; float: none; ">é </span>Cop<div><br></div><div>to:</div><div><br></div><div>bourgé Cop</div><div><br></div><div>Is there any Erlang library for this?</div><div><br><div apple-content-edited="true">
<div>Regards,</div><div>Zabrane</div>
</div>
<br></div></div></blockquote></div><div apple-content-edited="true"><br>
</div>
<br></div></body></html>