167 Titles from Presearch shows domain + title without spacing, and HTML
168 This function removes these 2 issues.
169 Transforming "translate.google.co.in<em>Google</em> Translate" into "Google Translate"
171 parsed_url = urlparse(url)
172 domain = parsed_url.netloc
173 title = html_to_text(title)
177 title.startswith(domain)
178 and len(title) > len(domain)
179 and not title.startswith(domain +
"/")
180 and not title.startswith(domain +
" ")
182 title = title.removeprefix(domain)