mirror of
				https://github.com/pierre42100/ComunicWeb
				synced 2025-11-04 04:04:20 +00:00 
			
		
		
		
	Create space in HTML elements correctly
This commit is contained in:
		@@ -384,3 +384,18 @@ function check_url(url){
 | 
			
		||||
 | 
			
		||||
	return url.match(regex) == null ? false : true;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * Add a space in an HTML element
 | 
			
		||||
 * 
 | 
			
		||||
 * @param {HTMLElement} target The target element for the space
 | 
			
		||||
 */
 | 
			
		||||
function add_space(target){
 | 
			
		||||
 | 
			
		||||
	createElem2({
 | 
			
		||||
		appendTo: target,
 | 
			
		||||
		type: "span",
 | 
			
		||||
		innerHTML: " "
 | 
			
		||||
	});
 | 
			
		||||
	
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user