【发布时间】:2017-01-26 17:25:28
【问题描述】:
我在 sqlserver 中存储了 mathml 格式的方程。使用 linq 我将列表中的方程式传递给 UI。在 UI 中,我尝试使用 ng-repeat 呈现这些数学字符串,但它根本不起作用。
when i am directly putting the mathml string inside any div its rendering equations correctly.
In ng-repeat it showing the mathml format as it is.
数学字符串是
<math xmlns="http://www.w3.org/1998/Math/MathML">
<mroot>
<mn>4</mn>
<mn>2</mn>
</mroot>
<mo>+</mo>
<mfrac>
<mn>5</mn>
<mn>2</mn>
</mfrac>
<mo> </mo>
<mo>=</mo>
<mo> </mo>
<mfenced open="[" close="]">
<mtable>
<mtr>
<mtd>
<mn>2</mn>
</mtd>
<mtd>
<mn>2</mn>
</mtd>
</mtr>
<mtr>
<mtd>
<mn>8</mn>
</mtd>
<mtd>
<mn>4</mn>
</mtd>
</mtr>
</mtable>
</mfenced>
</math>
【问题讨论】: