deal with special characters in title
							parent
							
								
									e7314efc76
								
							
						
					
					
						commit
						20e08b82a2
					
				
							
								
								
									
										2
									
								
								index.js
								
								
								
								
							
							
						
						
									
										2
									
								
								index.js
								
								
								
								
							|  | @ -40,7 +40,7 @@ function read_url(url, res) { | |||
| 	JSDOM.fromURL(url).then((document)=>{ | ||||
| 		let title = document.window.document.querySelector('title'); | ||||
| 		if (title) | ||||
| 			res.header("X-Title", title.textContent); | ||||
| 			res.header("X-Title", encodeURIComponent(title.textContent)); | ||||
| 		let reader = new Readability(document.window.document); | ||||
| 		let article = reader.parse(); | ||||
| 		let markdown = service.turndown(article.content); | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue