I want to include a glyphicon next to the content of my popover and it will be done dynamically in jquery. But when I add the span tags for the glyphicon, it shows the html string when the popover is displayed. It doesn't translate it to html
$(this).attr("data-content", "<span class=\"glyphicon glyphicon-warning-sign\" aria-hidden=\"true\"></span>You can't unlist if you have upcoming events scheduled" );
The content ends up looking like this in the popover
"<span class=\"glyphicon glyphicon-warning-sign\" aria-hidden=\"true\"></span>You can't unlist if you have upcoming events scheduled"