简体   繁体   English

在引导表 td 标签中读取 html

[英]Reading html inside bootstrap table td tag

I found this bootstrap table : https://codepen.io/damasco491/pen/xMgqXN我找到了这个引导表: https : //codepen.io/damasco491/pen/xMgqXN

The problem is that the td tag doesn't allow the HTML, ex:问题是td 标签不允许使用 HTML,例如:

<td><input type="text"/></td>

The result is showing the HTML as text : It should be resolved in the javascript bootstrap file ?结果是将 HTML 显示为文本:它应该在 javascript bootstrap 文件中解决吗?

Any help?有什么帮助吗?

TO solve this there is an option to allow HTMl in bootstrap table, you need to add-为了解决这个问题,有一个选项可以在引导表中允许 HTMl,您需要添加-

data-escape="false"数据转义=“假”

in table tag like this -在这样的表格标签中 -

<table id="table" data-toggle="table" data-search="true" data-filter-control="true" data-show-export="true"
        data-click-to-select="true" data-toolbar="#toolbar" data-escape="false" class="table-responsive">

Hop this helps.跳这有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM