title: express.js ejs not rendering my html
body: <p>I'm using Express.js with EJS to render the response from a database query as an html unordered list. I'm also using <a href="http://json2html.com/" rel="nofollow noreferrer">json2html</a>. I'm not getting any errors but my list item elements are not getting rendered as HTML. What am I doing wrong?</p>
  
  <p>The page renders in my browser like this -</p>
  
  <p><a href="https://i.stack.imgur.com/PIyrl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PIyrl.png" alt="enter image description here"></a></p>
  
  <p>My Express router handler -</p>
  
  <pre><code>var $stmt = squel.select().from('GrpPractice').field('*').toString();
  
  router.get('/', handler1);
  
  function handler1(req, res) {
      db.all($stmt, function(err, rows) {
          var transform = {'tag':'li', 'html':'${Organization legal name}'};
          var html    = json2html.transform(rows, transform);
          res.render('index', { title: 'Group Practices', html });    
          //  res.send(rows);
          });
  }
  </code></pre>
  
  <p>And my EJS template -</p>
  
  <pre><code>  &lt;body&gt;
      &lt;h1&gt;&lt;%= title %&gt;&lt;/h1&gt;
      &lt;p&gt;Welcome to &lt;%= title %&gt;&lt;/p&gt;
      &lt;ul&gt;
          &lt;%= html %&gt; 
      &lt;/ul&gt;
    &lt;/body&gt;
  </code></pre>
  
  <p>My data appears well formed -</p>
  
  <pre><code>[{"Organization legal name":"23RD FAMILY MED LLC","Group Practice PAC ID":"3375715477","Number of Group Practice members":5,"First Name":"CHERL","Last Name":"MUES","Credential":"","Primary specialty":"NURSE PRACTITIONER"},{"Organization legal name":"23RD FAMILY MED LLC","Group Practice PAC ID":"3375715477","Number of Group Practice members":5,"First Name":"PAUL","Last Name":"GLOWACKI","Credential":"MD","Primary specialty":"FAMILY PRACTICE"},{"Organization legal name":"23RD FAMILY MED LLC","Group Practice PAC ID":"3375715477","Number of Group Practice members":5,"First Name":"MONTY","Last Name":"SELLON","Credential":"","Primary specialty":"FAMILY PRACTICE"},{"Organization legal name":"23RD FAMILY MED LLC","Group Practice PAC ID":"3375715477","Number of Group Practice members":5,"First Name":"MILO","Last Name":"ANDERSON","Credential":"","Primary specialty":"FAMILY PRACTICE"},{"Organization legal name":"23RD FAMILY MED LLC","Group Practice PAC ID":"3375715477","Number of Group Practice members":5,"First Name":"ANDREW","Last Name":"OPP","Credential":"","Primary specialty":"FAMILY PRACTICE"},{"Organization legal name":"3-D OPTICAL","Group Practice PAC ID":"1951361732","Number of Group Practice members":4,"First Name":"KRISTEN","Last Name":"KOSIR","Credential":"OD","Primary specialty":"OPTOMETRY"},{"Organization legal name":"3-D OPTICAL","Group Practice PAC ID":"1951361732","Number of Group Practice members":4,"First Name":"NIROPA","Last Name":"PRASAD","Credential":"","Primary specialty":"OPTOMETRY"},{"Organization legal name":"3-D OPTICAL","Group Practice PAC ID":"1951361732","Number of Group Practice members":4,"First Name":"ROBERT","Last Name":"MCCAMY","Credential":"OD","Primary specialty":"OPTOMETRY"},{"Organization legal name":"3-D OPTICAL","Group Practice PAC ID":"1951361732","Number of Group Practice members":4,"First Name":"DARREL","Last Name":"CRISSLER","Credential":"","Primary specialty":"OPTOMETRY"},{"Organization legal name":"5MD CONVENIENT CARE LLC","Group Practice PAC ID":"2567643026","Number of Group Practice members":4,"First Name":"JULIE","Last Name":"HATCH","Credential":"","Primary specialty":"NURSE PRACTITIONER"}]
  </code></pre>
  
  <p>If I log to console it looks like valid html</p>
  
  <pre><code>&lt;li&gt;23RD FAMILY MED LLC&lt;/li&gt;&lt;li&gt;23RD FAMILY MED LLC&lt;/li&gt;&lt;li&gt;23RD FAMILY MED LLC&lt;/li&gt;&lt;li&gt;23RD FAMILY MED LLC&lt;/li&gt;&lt;li&gt;23RD FAMILY MED LLC&lt;/li&gt;&lt;li&gt;3-D OPTICAL&lt;/li&gt;&lt;li&gt;3-D OPTICAL&lt;/li&gt;&lt;li&gt;3-D OPTICAL&lt;/li&gt;&lt;li&gt;3-D OPTICAL&lt;/li&gt;&lt;li&gt;5MD CONVENIENT CARE LLC&lt;/li&gt;
  </code></pre>
  
  <p>If I view page source in the browser (thank you Tomasz Jakub Rup), not so valid... </p>
  
  <pre><code> &lt;body&gt;
      &lt;h1&gt;Group Practices&lt;/h1&gt;
      &lt;p&gt;Welcome to Group Practices&lt;/p&gt;
      &lt;ul&gt;
          &amp;lt;li&amp;gt;23RD FAMILY MED LLC&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;23RD FAMILY MED LLC&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;23RD FAMILY MED LLC&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;23RD FAMILY MED LLC&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;23RD FAMILY MED LLC&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;3-D OPTICAL&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;3-D OPTICAL&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;3-D OPTICAL&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;3-D OPTICAL&amp;lt;/li&amp;gt;&amp;lt;li&amp;gt;5MD CONVENIENT CARE LLC&amp;lt;/li&amp;gt; 
      &lt;/ul&gt;
    &lt;/body&gt;
  </code></pre>
  
  <p>Can anyone identify what I'm doing wrong? It appears as if my browser is interpreting this as a text string, rather than markup.</p>