Create space in HTML elements correctly

This commit is contained in:
Pierre 2018-03-11 10:38:43 +01:00
parent fb1f702c77
commit 370d39f153

View File

@ -384,3 +384,18 @@ function check_url(url){
return url.match(regex) == null ? false : true; 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: " "
});
}