I would like to convert this text éàè to éàè using javascript.
I tried $('<textarea />').text("éàe").html(); but it doesn't encode the accented characters... 
The org.apache.commons.lang3.StringEscapeUtils.escapeHtml works correctly in Java, is there an equivalent for javascript ?
 
    