title: How to get an HTML element from a string with vanilla JS
body: <p>I have a variable with HTML in it. All I want to do is extract the last element of the node and click on it using pure vanilla JavaScript. </p>
  
  <p>Here is what I have:</p>
  
  <pre><code>var rand = '
   &lt;div class="readmorelink"&gt; 
     &lt;a href="example.com/link-to-follow/"&gt;
     Continue Reading        
     &lt;/a&gt; 
   &lt;/div&gt;';
  </code></pre>