Displaying pre-escaped varibles
Posted: Fri Feb 26, 2010 9:49 am
Just a quick one.
I'm displaying a users name on the screen after they log in. The name is escaped when it was saved to the database so, for example:
Steve 'the idiot' Austin is displayed as Steve \'the idiot\' Austin
Do I have to use str_replace() to swap '\' out, or can I read them in or display them in a way to sort it out?
I'm displaying a users name on the screen after they log in. The name is escaped when it was saved to the database so, for example:
Steve 'the idiot' Austin is displayed as Steve \'the idiot\' Austin
Do I have to use str_replace() to swap '\' out, or can I read them in or display them in a way to sort it out?