JavaScript remplace les espaces par des tirets
title = title.replace(/\s/g , "-");
Strange Sloth
title = title.replace(/\s/g , "-");
title = title.replace(/\s/g , "-");
var html = "<div>" + title + "</div>";
// ...