JSFiddle - React, Tailwind, and code Playground

by zzzzBov

HTML

<textarea rows="5" cols="40"></textarea>
<br>
<input type="button" id="enc" value="encode" />
<input type="button" id="dec" value="decode" />
<div></div>

JavaScript

/*
        "\"-quot",
        "&-amp",
        "'-apos",
        "<-lt",
        ">-gt",
        " -nbsp",
        "¡-iexcl",
        "¢-cent",
        "£-pound",
        "¤-curren",
        "¥-yen",
        "¦-brvbar",
        "§-sect",
        "¨-uml",
        "©-copy",
        "ª-ordf",
        "«-laquo",
        "¬-not",
        "\x00AD-shy",
        "®-reg",
        "¯-macr",
        "°-deg",
        "±-plusmn",
        "\x00B2-sup2",
        "\x00B3-sup3",
        "´-acute",
        "µ-micro",
        "¶-para",
        "·-middot",
        "¸-cedil",
        "\x00B9-sup1",
        "º-ordm",
        "»-raquo",
        "\x00BC-frac14",
        "\x00BD-frac12",
        "\x00BE-frac34",
        "¿-iquest",
        "À-Agrave",
        "Á-Aacute",
        "Â-Acirc",
        "Ã-Atilde",
        "Ä-Auml",
        "Å-Aring",
        "Æ-AElig",
        "Ç-Ccedil",
        "È-Egrave",
        "É-Eacute",
        "Ê-Ecirc",
        "Ë-Euml",
        "Ì-Igrave",
        "Í-Iacute",
        "Î-Icirc",
        "Ï-Iuml",
        "Ð-ETH",
        "Ñ-Ntilde",
        "Ò-Ograve",
        "Ó-Oacute",
        "Ô-Ocirc",
        "Õ-Otilde",
        "Ö-Ouml",
        "×-times",
        "Ø-Oslash",
        "Ù-Ugrave",
        "Ú-Uacute",
        "Û-Ucirc",
        "Ü-Uuml",
        "Ý-Yacute",
        "Þ-THORN",
        "ß-szlig",
        "à-agrave",
        "á-aacute",
        "â-acirc",
        "ã-atilde",
        "ä-auml",
        "å-aring",
        "æ-aelig",
        "ç-ccedil",
        "è-egrave",
        "é-eacute",
        "ê-ecirc",
        "ë-euml",
        "ì-igrave",
        "í-iacute",
        "î-icirc",
        "ï-iuml",
        "ð-eth",
        "ñ-ntilde",
        "ò-ograve",
        "ó-oacute",
        "ô-ocirc",
        "õ-otilde",
        "ö-ouml",
        "÷-divide",
        "ø-oslash",
        "ù-ugrave",
        "ú-uacute",
        "û-ucirc",
        "ü-uuml",
        "ý-yacute",
        "þ-thorn",
        "ÿ-yuml",
        "Œ-OElig",
        "œ-oelig",
       ...