mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 12:32:43 +00:00 
			
		
		
		
	LibHTML: Turn "—" into "-" in the parser for now
Ultimately we should deal with all the various HTML entitites.
This commit is contained in:
		
							parent
							
								
									d6c0d32b63
								
							
						
					
					
						commit
						397acde846
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -145,7 +145,8 @@ static bool parse_html_document(const StringView& html, Document& document, Pare | |||
|                 static Escape escapes[] = { | ||||
|                     { "<", "<" }, | ||||
|                     { ">", ">" }, | ||||
|                     { "&", "&" } | ||||
|                     { "&", "&" }, | ||||
|                     { "—", "-" }, | ||||
|                 }; | ||||
|                 auto rest_of_html = html.substring_view(i, html.length() - i); | ||||
|                 bool found = false; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Andreas Kling
						Andreas Kling