truncateUnused htmllist parser optimizations