string - PHP Escape ampersand when printing -
In my Flash website, I type the variable's $ trunk
, and then via PHP I < Code> $ trunk and capture it using my flash program.
The problem is that sometimes the most text received in the database is an ampersand, "and", and while using the print "$ trunk"
it is very poorly messed up And results will not be printed at all, which causes errors in the Flash program.
Using mysql_real_escape_string ($ trunk) will not work because this function can not escape from the ampersand, and nothing has been done using html_entity_decode
.
So, how can I avoid ampersands in strings?
Comments
Post a Comment