- more LaTeX escaping
This commit is contained in:
		
							parent
							
								
									8238fab8b7
								
							
						
					
					
						commit
						ec61c42cfc
					
				@ -46,7 +46,7 @@ class TeXUtils
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    static public function escape(string $str) : string {
 | 
			
		||||
        return preg_replace("/([#%&])/", "\\\\$1", $str);
 | 
			
		||||
        return preg_replace("/([$#%&_~])/", "\\\\$1", $str);
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user