html decode was not completing

identified an issue with chrome where the html decode method was not completing the string and replacing &amp; with '&' and leaving &gt; and so forth.
I also tweaked it so &amp would be the first to be evaluated to minimize looping.