mirror of
				https://github.com/rad4day/Waybar.git
				synced 2025-10-31 16:02:43 +01:00 
			
		
		
		
	utils: add sanitize_str to encode '&' etc.
gtk requires some chars (<>&"') to be encoded for them to render properly. `sanitize_str` sanitizes raw strings that have such chars and returns a properly encoded string
This commit is contained in:
		
							
								
								
									
										6
									
								
								include/util/sanitize_str.hpp
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										6
									
								
								include/util/sanitize_str.hpp
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,6 @@ | ||||
| #pragma once | ||||
| #include <string> | ||||
|  | ||||
| namespace waybar::util { | ||||
| std::string sanitize_string(std::string str); | ||||
| }  // namespace waybar::util | ||||
		Reference in New Issue
	
	Block a user
	 Mika Braunschweig
					Mika Braunschweig