What should I do if my data is string of html?

What should I do if my data is string of html?

vickershhhvickershhh Posts: 5Questions: 3Answers: 0
edited August 2019 in Free community support

Hi,
one of my data in datatable is a string of html like this:
"div class=tooltip-permission>Ajay Malik<span class=tooltiptext>Publish</span></div></br>"
Then when is imported to my table, it's still a string of html instead of a html object....

What should I do to fix this, and that column can display correct html content?

Thanks!

Answers

  • vickershhhvickershhh Posts: 5Questions: 3Answers: 0
    edited August 2019

    That's a string of html in description like this....
    div class=tooltip-permission>Ajay Malik<span class=tooltiptext>Publish</span></div></br>

  • colincolin Posts: 15,143Questions: 1Answers: 2,586

    Hi @vickershhh ,

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

  • kthorngrenkthorngren Posts: 20,300Questions: 26Answers: 4,769

    "div class=tooltip-permission>Ajay Malik<span class=tooltiptext>Publish</span></div></br>"

    It looks like in both posts you have that the leading < in front of the div tag is missing. If this doesn't help then as Colin says we would need a test case.

    Kevin

This discussion has been closed.