HTML -теги внутри Bootstrap Popover не отображаютсяJquery

Программирование на jquery
Anonymous
HTML -теги внутри Bootstrap Popover не отображаются

Сообщение Anonymous »

У меня есть проблема, и я не могу понять, почему теги HTML внутри попвер не будут отображаться.

Код: Выделить всё

    [b][url=#]Popover Example[/url]




[url=#]Popover Example[/url]



This is the heading for #1
















This is the heading for #2

This is the body for #2

With html[/b] content


< /code>
js: < /p>
    $(function(){
$("[data-toggle=popover]").popover({
html : true,
content: function() {
var content = $(this).attr("data-popover-content");
return $(content).children(".popover-body").html();
},
title: function() {
var title = $(this).attr("data-popover-content");
return $(title).children(".popover-heading").html();
}
});
});
< /code>
Попвер: < /p>

< /code>
не может отображать код. < /p>
< /p>

работает нормально, но это просто текстовое.
Что я делаю неправильно?

Подробнее здесь: https://stackoverflow.com/questions/605 ... t-rendered

Вернуться в «Jquery»