on master help sign in
[fix] title escaping
commitfa6f430f2ed684b1deaba08b4ffb38349254abf8 authorasciimoo <asciimoo@gmail.com> dateSat 11 Jan 2014, 12:39 (13 years ago) parent0eb3cdf
1 file changed+1−1
searx/engines/stackoverflow.py+1−1
searx/engines/stackoverflow.py+1−1
@@ -19,7 +19,7 @@ def response(resp):
1919 for result in dom.xpath('//div[@class="question-summary search-result"]'):
2020 link = result.xpath('.//div[@class="result-link"]//a')[0]
2121 href = urljoin(url, link.attrib.get('href'))
22− title = ' '.join(link.xpath('.//text()'))
22+ title = escape(' '.join(link.xpath('.//text()')))
2323 content = escape(' '.join(result.xpath('.//div[@class="excerpt"]//text()')))
2424 results.append({'url': href, 'title': title, 'content': content})
2525 return results