I have a variable in one of my scripts which adds a currency sign to the beginning of whatever amount is calculated. The variable looks like this when using pounds sterling:
var currency = "£";
The problem is that using a regular £ sign does not work and a small square appears in its place. I have tried using an entity name like this:
var currency = "£"; but instead of a pound sign the script reproduces the entity name verbatim. This is also the case if I use an entity number.
Is there a way of using an entity name but having it reproduced on the page as the symbol it stands for?