My css 3 tooltip (created folowing this tutorial) is showing this :
Name </br> Description
instead of
Name
Description
The html code used to create the tooltip has been made by my javascript script :
var DivItem = document.createElement("div");
var span = document.createElement("span");
var spanText = document.createTextNode(Name + "<br>" + Description;
span.appendChild(spanText);
span.className = "TooltipText";
DivItem.appendChild(span);
DivItem.className = "Tooltip";
MainDiv.appendChild(DivItem);
I need to use the javascript code here beacause i make an list of items (got from a json), and i need to have a tooltip to show more informations on the hovered item.