when i use this character:
& #1587; (i placed a space between ampersand and # intentionally to be posted correctly here)
in a webpage, it shows the equivalent character(in this case س😉
but when i use it like this:
alert("& #1587;")
it shows "& #1587;" and not س.
how can i make alert() to behave properly?