<!DOCTYPE html><html lang=en><head><meta charset=UTF-8><title>&lt;Test Page&gt;</title></head><body><h1>&lt;Test Page&gt;</h1><div class=content><p> Extra whitespace should be removed </p><p><strong>Bold content</strong></p><ul>  <li data-id="1">Item 1</li>  <li data-id="2">Item 2</li>  </ul><form><input type=text required disabled checked><input type=checkbox checked><button type=submit disabled>Submit</button></form><div class="active"> Dynamic content </div><pre>
            This content    should preserve
                spacing and line breaks
        </pre></div></body></html>