[SOLVED] Specials characters conversion on HTML string from JSON or http

You will have to use something that does a manual translation I presume, so something like:
(Bare in mind I typed this on a phone and made it up without testing, and this is after numerous edits…)

(function(i) {
    var chars = [/à/g, /è/g];
    var symbols = ['à', 'è'];
    for(let c = 0; c<chars.length; c++){
        i = i.replace(chars[c], symbols[c]);
    }
    return i;
})(input)