account for the extra length of html comments

I noticed that things were breaking with html comments, let me know if you think this is a good way to fix it.