Specifies how to handle quotes, invalid code unit sequences and the used document type. Possible Values:
ENT_COMPAT - Table will contain entities for double-quotes, but not for single-quotes.
ENT_QUOTES - Table will contain entities for both double and single quotes.
ENT_NOQUOTES - Table will neither contain entities for single quotes nor for double quotes.
ENT_SUBSTITUTE - Replace invalid code unit sequences with a Unicode Replacement Character U+FFFD (UTF-8) or &#FFFD; (otherwise) instead of returning an empty string.
ENT_DISALLOWED - Replace invalid code points for the given document type with a Unicode Replacement Character U+FFFD (UTF-8) or &#FFFD; (otherwise) instead of leaving them as is.
ENT_HTML5 - Handle code as HTML 5.
ENT_HTML401 - Handle code as HTML 4.01.
ENT_XML1 - Handle code as XML 1.
ENT_XHTML - Handle code as XHTML.
Default value is ENT_COMPAT.
character-set
Optional
Specifies the character-set to use when converting characters. Possible Values:
ISO-8859-1 - Western European, Latin-1.
ISO-8859-5 - Little used cyrillic charset (Latin/Cyrillic).
ISO-8859-15 - Western European, Latin-9. Adds the Euro sign, French and Finnish letters missing in Latin-1 (ISO-8859-1).