Fix link decoding issue in local-duckduckgo.ts
This commit is contained in:
		
							parent
							
								
									9262a5bb7c
								
							
						
					
					
						commit
						28887e99b7
					
				| @ -41,6 +41,8 @@ export const localDuckDuckGoSearch = async (query: string) => { | |||||||
|         .find("a.result__snippet") |         .find("a.result__snippet") | ||||||
|         .attr("href") |         .attr("href") | ||||||
|         .replace("//duckduckgo.com/l/?uddg=", "") |         .replace("//duckduckgo.com/l/?uddg=", "") | ||||||
|  |         .replace(/&rut=.*/, "") | ||||||
|  | 
 | ||||||
|       const content = $(result).find("a.result__snippet").text() |       const content = $(result).find("a.result__snippet").text() | ||||||
|       const decodedLink = decodeURIComponent(link) |       const decodedLink = decodeURIComponent(link) | ||||||
|       return { title, link: decodedLink, content } |       return { title, link: decodedLink, content } | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user