Fixes for HTML entities and choosing the correct lines.