Function __global->escape_html_in_comcode

Definitions

sources/global3.php

  • Escape certain special characters in the provided string, so that it can be embedded as HTML within Comcode.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$string mixed No No required parameter N/A N/A The input string

Returns

  • The escaped string
  • Type: mixed
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Escape certain special characters in the provided string, so that it can be embedded as HTML within Comcode.
 *
 * @param  mixed $string The input string
 * @return mixed The escaped string
 */

function escape_html_in_comcode($string)