I have an html form where the user can put in a currency symbol. When the form is first submitted using the £ symbol it save correctly, but when the form reloads the value is £
So the second time it is saved it saves the entity and not the value
<input type="text" value="<?php echo htmlentities($currency_symbol); ?>" />
I am using htmlentities to prevent XSS, but this seems to be a problem. Any ideas?