← All docs

html_entity_decode()

Converts HTML entities in a string back into their corresponding characters.

html_entity_decode()

function html_entity_decode(string $string): string

Converts HTML entities in a string back into their corresponding characters.

Parameters:

  • $string (string)

Returns: string

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how html_entity_decode is implemented in the compiler, see the internals page.