mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 21:51:50 +00:00 
			
		
		
		
	Fix issue12938 - Update the docstring of html.escape. Include the information on single quote.
This commit is contained in:
		
							parent
							
								
									305a68eb4a
								
							
						
					
					
						commit
						d71bbf9fd5
					
				
					 1 changed files with 2 additions and 1 deletions
				
			
		|  | @ -13,7 +13,8 @@ def escape(s, quote=True): | |||
|     """ | ||||
|     Replace special characters "&", "<" and ">" to HTML-safe sequences. | ||||
|     If the optional flag quote is true (the default), the quotation mark | ||||
|     character (") is also translated. | ||||
|     characters, both double quote (") and single quote (') characters are also | ||||
|     translated. | ||||
|     """ | ||||
|     if quote: | ||||
|         return s.translate(_escape_map_full) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Senthil Kumaran
						Senthil Kumaran