locked
problem with displaying HTML content in the third tutorial

    Question

  • Hi,

    I basically did cut and paste of tutorial 3 which adds the "grid" css style to the Rssreader example.

    In the ListView selection handler below ("selectionChanged"), the new content is added to the "content" div

    but it appears with the element tags as in the screen shot below.

    I dont' understand why. What am I missing here.

     

    Saturday, November 19, 2011 12:38 AM

Answers

  • Please note you have to bind the innerHtml property of the DIV in your binding to show the HTML content correctly, not the innerText.
    Bob Bao [MSFT]
    MSDN Community Support | Feedback to us

    • Edited by Bob_Bao Monday, November 21, 2011 8:15 AM
    • Marked as answer by Bob_Bao Tuesday, November 29, 2011 8:21 AM
    Monday, November 21, 2011 8:15 AM

All replies