How can i decode html entities with jquery like with php function htmlspecialchars_decode? I have this code:
if (jQuery.trim(jQuery("#push_alert").val()) != "") {
alert = jQuery("#push_alert").val();
}
And whenever the text has &
in it, it outputs %amp;
Is there a simple way to do it?