Quantcast
Channel: PTC Community: Message List
Viewing all articles
Browse latest Browse all 11560

Rich Content in Report

$
0
0

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 &lt; and &gt;. 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%>


Viewing all articles
Browse latest Browse all 11560

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>