PHP Manual

PHP function htmlspecialchars_decode()

2019-09-11T08:04:03.000Z

Obsah článku

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

Jan Barášek   Více o autorovi

Autor článku pracuje jako seniorní vývojář a software architekt v Praze. Navrhuje a spravuje velké webové aplikace, které znáte a používáte. Od roku 2009 nabral bohaté zkušenosti, které tímto webem předává dál.

Rád vám pomůžu:

Související články

1.
227.

V jiných jazycích

Status:
All systems normal.
2025