I'm doing something to convert the HTML Special Chars into UTF-8 Chars. I tried a few things, but nothing worked.
I have to approaches for solving this problem, I have an js object :
let HTMLCharsObject = {
    """: '"',
    "&": "&",
    "€": "€",
    "<": "<"
}
For exemple, in HTML Chars, " is equal to " and I want to convert " to "
But I also have to arrays :
let HTMLArray = [
    """,
    "&",
    "€",
    "<"
]
let UTF8Array = [
    '"',
    "&",
    "€",
    "<"
]
And here, the elements are in the same order as the HTMLCharsObject but in separate arrays. So, you can use what you want.
And here's the exemple string:
let string = "This is a " test &"
And as result i'm trying to have "This is a " test &"
Thanks !
 
     
    