You can use the built-in sgml-mode
for this.
M-x sgml-mode
- Enable the sgml-mode
major mode so that sgml-pretty-print
command auto-loads.
C-x h
- Select the whole buffer.
M-x sgml-pretty-print
To save space, below is only a part of the formatted text that I get on doing the above on your sample text in the question:
<table border="4px" cellpadding="0" cellspacing="0" class="c31 c42">
<tbody>
<tr class="c4">
<td class="c33" colspan="1" rowspan="1">
<p class="c6">
<span class="c12 c11">Veld
</span>
</p>
</td>
<td class="c35" colspan="1" rowspan="1">
<p class="c7">
<span class="c12 c11">Waarde(n)
</span>
</p>
</td>
<td class="c26" colspan="1" rowspan="1">
<p class="c19">
<span class="c12 c11">Null
</span>
</p>
</td>
<td class="c18" colspan="1" rowspan="1">
<p class="c6 c38">
<span class="c12 c11">Validatie
</span>
</p>
</td>;
[Source]