Setup popover content and html escape
Description
The following code shows how to setup popover content and html escape.
Example
<!DOCTYPE html>
<html>
<head>
<script type='text/javascript'
src='http://code.jquery.com/jquery-1.10.1.js'></script>
<link rel="stylesheet" type="text/css"
href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/css/bootstrap-combined.min.css">
<script type='text/javascript'
src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.2/js/bootstrap.min.js"></script>
<style type='text/css'>
body {<!-- w w w .jav a 2 s .co m-->
padding: 40px;
}
</style>
<script type='text/javascript'>
$(function() {
$('#no-live').popover();
$(document).popover({
selector: '[data-toggle="popover"]',
html:true
});
});
</script>
</head>
<body>
<span id="no-live" data-title="title"
data-content="<b>this should be bold</b>... and it is!"
data-html="true">text</span>
<br>
</body>
</html>