Function __global->convert_to_html_encoding

Definitions

sources/character_sets.php

  • Turn character set characters into HTML entities. Useful as GD truetype functions need this as they can only process ASCII + entities. Based on function in PHP code comments.Don't use this for stuff other than GD as it is very severe in its use of HTML entities.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$text string No No required parameter N/A N/A Input

Returns

  • Output
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Turn character set characters into HTML entities. Useful as GD truetype functions need this as they can only process ASCII + entities. Based on function in PHP code comments.Don't use this for stuff other than GD as it is very severe in its use of HTML entities.
 *
 * @param  string $text Input
 * @return string Output
 */

function convert_to_html_encoding(string $text) : string