Gen. partnerAlgotech

PHP function html_entity_decode()

Convert all HTML entities to their applicable characters

|
September 11, 2019

Availability in versions: PHP 4.3.0

Convert all HTML entities to their applicable characters

Parameters

Parameter Data type Default value Note
$string string not String being processed.
$quote_style int null, The optional second quote_style parameter lets you define what will be done with 'single' and "double" quotes. It takes on one of three constants with the default being ENT_COMPAT: Available quote_style constants
Constant Name Description
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.
$charset string null The ISO-8859-1 character set is used as default for the optional third charset. This defines the character set used in conversion.

Return values

string

the decoded string.

Other resources

Official html-entity-decode documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.