Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/html/74.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
HTML格式化引导弹出窗口中跨度的数据容器_Html_Twitter Bootstrap_String Formatting - Fatal编程技术网

HTML格式化引导弹出窗口中跨度的数据容器

HTML格式化引导弹出窗口中跨度的数据容器,html,twitter-bootstrap,string-formatting,Html,Twitter Bootstrap,String Formatting,我用一个SPAN作为popover : 我想使用HTML格式化数据内容字符串。它似乎不允许格式化。是否有数据容器设置使我能够使用HTML格式化数据内容?我注意到您正在使用引导(向左拉和数据切换=“popover”等) 查看这里有一个htmlconfig选项,用于呈现html而不是文本 Name Type Default Description html boolean false Insert HTML into the popover. If false, jQuer

我用一个SPAN作为popover :



我想使用HTML格式化数据内容字符串。它似乎不允许格式化。是否有数据容器设置使我能够使用HTML格式化数据内容?

我注意到您正在使用引导(
向左拉
数据切换=“popover”
等)

查看这里有一个
html
config选项,用于呈现html而不是文本

Name    Type    Default Description
html    boolean false   Insert HTML into the popover. If false, jQuery's text method will be used to insert content into the DOM. Use text if you're worried about XSS attacks.
使用
data html=“true”
并尝试:

<span data-toggle="popover" data-container="body" data-placement="bottom" data-html="true" data-content="<b>This</b> Lorem Ipsum..." data-trigger="hover">


为什么不将实际内容放在
中,而不是尝试在数据属性中描述它?
<span data-toggle="popover" data-container="body" data-placement="bottom" data-html="true" data-content="<b>This</b> Lorem Ipsum..." data-trigger="hover">