When I try to output a text field from a Test Result Related Item that contains rich content to an HTML report, all of the < and > are replaced by < and >. This happens with some other characters also. How do you get it to preserve the HTML instead of doing this conversion? Below is where I am trying to use it. Basically I'm trying to output all ALM_Defect items from a test session. This doesn't happen for fields on the Test Session itself though.
<%begintestresultdetail verdict=&combinedverdictfilter %>
<%begintestresultitemdetail%>
<table>
<script type="text/javascript">
<!--
var itemId = "<%testresultitem ID%>";
var itemType = "<%testresultitem Type%>";
var desc = "<%testresultitem ALM_Description%>";
if (itemType == "ALM_Defect") {
document.write("<tr><td class='noBorder'>" + itemId + "</td><td class='noBorder'>" + desc + "</td></tr>");
}
-->
</script>
</table>
<%endtestresultitemdetail%>
<%endtestresultdetail%>