Gen. partnerAlgotech

PHP function htmlspecialchars_decode()

Convert special HTML entities back to characters

|
September 11, 2019

Availability in versions: PHP 5.1.0

Convert special HTML entities back to characters

Parameters

Parameter Data type Default value Note
$string string not The string to decode
$quote_style int null The quote style. One of the following constants: quote_style constants
Constant Name Description
ENT_COMPAT Will convert double-quotes and leave single-quotes alone (default)
ENT_QUOTES Will convert both double and single quotes
ENT_NOQUOTES Will leave both double and single quotes unconverted

Return values

string

the decoded string.

Other resources

Official htmlspecialchars-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.