PHP htmlentities () Function

htmlentities() – Convert all applicable characters to HTML entities!

ENT_COMPAT – will convert double-quotes and leave single-quotes alone.
ENT_QUOTES – will convert both double and single quotes.
ENT_NOQUOTES – will leave both double and single quotes unconverted.

You may refer PHP htmlentities for more information.

Posted in Php