title: Remove all escape sequences in specific code block
body: <p>I have an HTML snippet which looks like the following: </p>
  
  <pre><code>&lt;code class="inline"&gt;\n     object.__getattribute__\n    &lt;/code&gt;\n    and\n    &lt;code class="inline"&gt;\n     super.__getattribute__\n    &lt;/code&gt;\n    peek\nin the\n    &lt;code class="inline"&gt;\n     __dict__\n    &lt;/code&gt;\n    of classes on the MRO for a class when looking for\nan attribute. This PEP adds an optional\n    &lt;code class="inline"&gt;\n     __getdescriptor__\n    &lt;/code&gt;\n    method to\na metaclass that replaces this behavior and gives more control over attribute\nlookup, especially when using a\n    \n     super\n    &lt;/a&gt;\n\n    \n    &lt;/a&gt;\n    object.\n   &lt;/p&gt;\n&lt;p&gt;\n    That is, the MRO walking loop in\n  
  </code></pre>
  
  <p><strong>Question</strong></p>
  
  <p>How can I target just the <code>\n</code> in the <code>&lt;code&gt;</code> tags?</p>
  
  <p><strong>What I've tried</strong></p>
  
  <p>I have tried to use the <code>re.sub()</code> method but I keep replacing all of the contents instead of just the <code>\n</code> tags</p>