title: Regex remove everything after <
body: <p>I have a string that looks like:</p>
  
  <pre><code> some text &lt;a some text "quote" slash..
  </code></pre>
  
  <p>I want to remove everything after the <code>&lt;</code> so the above string will result in:</p>
  
  <pre><code>some text
  </code></pre>
  
  <p>How do I do that? Do i need to use a regex for that?</p>