PHP function htmlspecialchars_decode()

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

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.