I'm trying to use some entities for my E-learning project. I used to change the input field dynamically from an array
  var equationValue = new Array("",'−'+1,0,2,3);
and Here is my code
<html>
  <head>
  <script type="text/javascript">
      var equationValue = new Array("",'−'+1,0,2,3);
      function func(){
      document.getElementById('t_1_1').value = equationValue[1];
      }
 </script>
 </head>
 <body onload='func();'>  
   <input type='text' id='t_1_1' />  
 </body>
</html>
But the input value doesn't seem to support HTML entities.
Help me how to use HTML entity in to input value. Here is my working Example
 
     
     
    