Use of htmlentities() function..
by Naveenkumar[ Edit ] 2013-12-02 15:34:44
Use of htmlentities() function..
If you want to show the output in browser that are related to html tags are not shown..
Because the browser understand that it was an html code so it is not displayed..
For example,
Your Code will be
echo "
the solution is to use htmlentities...";
when u displaying the above output in browser it shows only
"the solution is to use htmlentities..."
B'coz the browser understands that
are html tags and its not displaying...
To avoid this,
use
htmlentities() function.
For example,
echo htmlentities("
the solution is to use htmlentities...");
The above code will output,
"
the solution is to use htmlentities..."