Function __global->html_entity_decode

Definitions

sources_custom/phpstub.php

  • Decode the HTML entity encoded input string.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$input string No No required parameter N/A N/A The text to decode
$quote_style integer No No required parameter N/A N/A The quote style code (NB: required for our standards even though not required for PHP)
$charset ?string No No Null N/A N/A Character set to decode to (null: default)

Returns

  • The decoded text
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Decode the HTML entity encoded input string.
 *
 * @param  string $input The text to decode
 * @param  integer $quote_style The quote style code (NB: required for our standards even though not required for PHP)
 * @param  ?string $charset Character set to decode to (null: default)
 * @return string The decoded text
 */

function html_entity_decode(string $input, int $quote_style, ?string $charset = null) : string