How do I use jQuery to decode HTML entities in a string?
I just had to have an HTML entity charater (⇓) as a value for a HTML button. The HTML code looks good from the beginning in the browser:
Now I was adding a toggle that should also display the charater. This is my solution
$("#share_button").toggle(
function(){
$("#share").slideDown();
$(this).attr("value", "Embed & Share " + $("").html("⇑").text());
}
This displays ⇓ again in the button. I hope this might help someone.