fix: non-valid HTML tags were not correctly parsed

some parts were accidentally dropped!