I have stored some html contents into a div for later processing.
When I retrieve the contents back (using $(".MyDiv").html()
) & display it else-where in the page, contents are html encoded.
I tried using jQuery.parseHTML()
method to decode this string, but it didn't work.
EDIT:
I was using jQuery template
to store the data in div, which by default encoded the string, I had to suppress encoding behavior. using following template, while binding.
{{html Response}}