French HTML Chars and Prototype

This is a starting place.

by mrchief

HTML

<!doctype html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <title></title>
        <meta name="description" content="">
        <meta name="author" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
    </head>
    <body>
        <div id="container">
            <header></header>
            <div id="main" role="main">
                <textarea rows="40" cols="40" id="output"></textarea>
            </div>
            <footer></footer>
        </div> 
    </body>
</html>

JavaScript

var strs = [
    '&amp;', 
    '&lt;',
    '&gt;',
    '&Agrave;',
    '&Acirc;',
    '&Auml;',
    '&Egrave;',
    '&Eacute;',
    '&Ecirc;',
    '&Euml;',
    '&Icirc;',
    '&Iuml;',
    '&Ocirc;',
    '&OElig;',
    '&Ugrave;',
    '&Ucirc;',
    '&Uuml;',
    '&Yuml;',
    '&agrave;',
    '&acirc;',
    '&auml;',
    '&egrave;',
    '&eacute;',
    '&ecirc;',
    '&euml;',
    '&icirc;',
    '&iuml;',
    '&ocirc;',
    '&oelig;',
    '&ugrave;',
    '&ucirc;',
    '&uuml;',
    '&yuml;',
    '&Ccedil;',
    '&ccedil;',
    '&laquo;',
    '&raquo;',
    '&lsaquo;',
    '&rsaquo;',
    '&euro;'];

for(var i = 0; i < strs.length; i++) {
    document.getElementById("output").innerHTML += "\n" + decode(strs[i]);
}

function decode(str) {
    var div = document.createElement('div');
    div.innerHTML = str;
    return div.innerHTML;
}