JSFiddle - React, Tailwind, and code Playground

HTML

<html>
      <head>
        <script type="text/javascript">
          function decodeEntity(text){
            var div = document.createElement('div');
            div.innerHTML = text;
            return div.textContent?div.textContent:div.innerText;
          }
          function echoValue(){
            var e = document.getElementById(decodeEntity("/path/&#x24;whatever"));
            if(e) {
              alert(e.innerHTML);
            }
            else {
              alert("not found\n");
            }
          }
        </script>
      </head>
      <body>
        <p id="/path/&#x24;whatever">The Value</p>
        <button onclick="echoValue()">Tell me</button>
      </body>
    </html>