locked
Issues retrieving data RRS feed

  • Question

  • User2129316869 posted

    I posted a data into my database using tinyMCE Rich Text Editor and I am trying to read the data but it retrieves it with the html tags. How can I get rid of the tags and get the correct format intended for it. Thanks

    Monday, June 9, 2014 4:17 AM

Answers

  • User-1716253493 posted

    for BoundField set htmlencode property to false

    or simply bind label text

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 9, 2014 4:21 AM
  • User-821857111 posted

    You need to use Html.Raw():

    @Html.Raw(item.Content)



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 9, 2014 4:30 AM

All replies

  • User-1716253493 posted

    for BoundField set htmlencode property to false

    or simply bind label text

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 9, 2014 4:21 AM
  • User-821857111 posted

    You need to use Html.Raw():

    @Html.Raw(item.Content)



    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, June 9, 2014 4:30 AM