如何在 bootstrap 弹出窗口中显示格式化的 xml 文本
How to display formatted xml text in a bootstrap popover
我有一些数据以 xml 的方式格式化,我需要将其显示在弹出窗口的内容中。 xml 标签被解释为 html 标签...
<Document><and><age>50</age><always/></and></document>
我想将 xml 显示为简单文本并缩进。有办法吗?
所以结果应该是:
<Document>
<and>
<age>50</age>
<always/>
</and>
</document>
非常感谢。
按以下方式为此使用 pre 标签:
<pre lang="xml"><your xml here></pre>
还要在弹出窗口的选项中将 html 选项设置为 true。
我有一些数据以 xml 的方式格式化,我需要将其显示在弹出窗口的内容中。 xml 标签被解释为 html 标签...
<Document><and><age>50</age><always/></and></document>
我想将 xml 显示为简单文本并缩进。有办法吗?
所以结果应该是:
<Document>
<and>
<age>50</age>
<always/>
</and>
</document>
非常感谢。
按以下方式为此使用 pre 标签:
<pre lang="xml"><your xml here></pre>
还要在弹出窗口的选项中将 html 选项设置为 true。