[BUGFIX] Invalid span causes HTML validation error