forked from open-webui/open-webui
		
	Merge pull request #1665 from dannyl1u/fix/html-br-tag-escaped
fix: <br> is not escaped in output text
This commit is contained in:
		
						commit
						1e76dbc9a0
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		|  | @ -35,7 +35,6 @@ export const sanitizeResponseContent = (content: string) => { | ||||||
| 		.replace(/<\|[a-z]+\|$/, '') | 		.replace(/<\|[a-z]+\|$/, '') | ||||||
| 		.replace(/<$/, '') | 		.replace(/<$/, '') | ||||||
| 		.replaceAll(/<\|[a-z]+\|>/g, ' ') | 		.replaceAll(/<\|[a-z]+\|>/g, ' ') | ||||||
| 		.replaceAll(/<br\s?\/?>/gi, '\n') |  | ||||||
| 		.replaceAll('<', '<') | 		.replaceAll('<', '<') | ||||||
| 		.trim(); | 		.trim(); | ||||||
| }; | }; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Timothy Jaeryang Baek
						Timothy Jaeryang Baek