Adds check before replacing on prices
Prevents a number of XSS attacks