mirror of
				https://github.com/searxng/searxng.git
				synced 2025-10-31 10:37:06 -04:00 
			
		
		
		
	[fix] html.unescape stract autocomplete suggestions
This commit is contained in:
		
							parent
							
								
									39aaac40d6
								
							
						
					
					
						commit
						54be8f09a6
					
				| @ -5,6 +5,7 @@ | ||||
| # pylint: disable=use-dict-literal | ||||
| 
 | ||||
| import json | ||||
| import html | ||||
| from urllib.parse import urlencode, quote_plus | ||||
| 
 | ||||
| import lxml | ||||
| @ -162,7 +163,7 @@ def stract(query, _lang): | ||||
|     if not resp.ok: | ||||
|         return [] | ||||
| 
 | ||||
|     return [suggestion['raw'] for suggestion in resp.json()] | ||||
|     return [html.unescape(suggestion['raw']) for suggestion in resp.json()] | ||||
| 
 | ||||
| 
 | ||||
| def startpage(query, sxng_locale): | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user