- more LaTeX escaping 2
This commit is contained in:
		
							parent
							
								
									ec61c42cfc
								
							
						
					
					
						commit
						a01b1f1760
					
				@ -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