嗨我正在以ASCII数学格式输入,当我直接将任何div放入其渲染中时。
<script src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=AM_HTMLorMML"></script>
<p>The area of a triangle with base `b` and height `h` is `1/2 bh`. The area of a circle with radius `r` is `pi r^2`.</p>
这里我用c#将用户输入存储在后端的sql server中,并将其传递给angular UI。使用ng-repeat读取值时,它不会渲染,而是在存储时显示。
<table ng-table="tableParams" class="table">
<tr ng-repeat="detail in $data">
<td data-title="'S.No'">{{$index+1}}</td>
<td data-title="'Q.No'" data-sortable="'QNo'">{{detail.QNo}}</td>
<td data-title="'Question'" data-sortable="'Question'">{{detail.Question}}</td> <!-- ng-bind-html="trustAsHtml(detail.Question)"-->
<td data-title="'Option1'" data-sortable="'Option1'">{{detail.Option1}}</td></tr></table>