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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -