title: Trouble outputting link within JS
body: <p>I'm playing around learning how to create a very simple HTML, CSS, JS chat bot and I've ran into some trouble which I'm hoping someone could help me with.</p>
  <p>When I type in &quot;Hey&quot; it outputs &quot;Hello!&quot; as expected, but when I try my &quot;test link&quot; response I can't figure out how to display it. Any ideas what I could be doing wrong? To clarify, when the user types in &quot;test link&quot; I want it to output &quot;I can help you find what you're looking for. Click Here!&quot; with &quot;Click Here!&quot; being a link to google.com.</p>
  <p>Any help would be much appreciated!</p>
  <pre><code>&lt;script&gt; 
  function talk(){    
  var know = {        
      &quot;Hey&quot;:&quot;Hello!&quot;,
          
      &quot;test link&quot;:&quot;I can help you find what you're looking for.&quot; + &lt;a href=&quot;https://www.google.com/&quot;&gt;Click Here!&lt;/a&gt;  
      
  };
  
  var user = document.getElementById('userBox').value;
  document.getElementById('chatLog').innerHTML = user + &quot;&lt;br&gt;&quot;;
  if(user in know){
      document.getElementById('chatLog').innerHTML = know[user] + &quot;&lt;br&gt;&quot;;
  }else{
      document.getElementById('chatLog').innerHTML = &quot;I do not understand.&quot;;
  }
  }
  
  &lt;/script&gt;
  </code></pre>