title: how to add html as text to d3.js tree node
body: <pre><code>nodeEnter.append("text")
              .attr("x", rectW / 2)
              .attr("y", rectH / 2)
              .attr("dy", ".35em")
              .attr("text-anchor", "middle").html("&lt;table&gt;&lt;tr&gt;&lt;td&gt; First Lin&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;");
  </code></pre>
  
  <p>You can see my code above. I add a text as html by using <code>html</code>. However I can see that htmls as inspecting, there is no text on node. Do you have any idea?</p>
  
  <p><a href="https://i.stack.imgur.com/UUm2A.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UUm2A.png" alt="enter image description here"></a></p>