To add to this, here is the actual HTML
Input directory:
Code:
public class Garage <br>
{ <br>
private Car[] carArray = new Car[4]; <br>
... <br>
<b> // Iterator method. </b><br>
public IEnumerator GetEnumerator() <br>
{ <br>
foreach (Car c in carArray) <br>
{ <br>
yield return c; <br>
} <br>
} <br>
} <br>
Parsed directory:
Code:
public class Garage </p>
<p>{ </p>
<p>private Car[] carArray = new Car[4]; </p>
<p>... </p>
<p><b> // Iterator method. </b></p>
<p>public IEnumerator GetEnumerator() </p>
<p>{ </p>
<p>foreach (Car c in carArray) </p>
<p>{ </p>
<p>yield return c; </p>
<p>} </p>
<p>} </p>
<p>} </p>
So the problem is that the parsed code has had paragraph tags added to every line and it has removed all the   bits.
How can I solve this?
Update: Sorry repasted the parsed code as I had accidentally just pasted the input code twice.