Function __global->_css_color_fixup

Definitions

sources/comcode_from_html.php

  • Used by semihtml_to_comcode to fix CSS colours away from RGB notation. preg_replace_callback callback.
  • Visibility: public
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Returns: string

Parameters

Name Type Passed by reference? Variadic? Default Set Range Description
$matches array No No required parameter N/A N/A Array of matches

Returns

  • Substituted text
  • Type: string
  • Set: N/A
  • Range: N/A

Preview

Code (PHP)

/**
 * Used by semihtml_to_comcode to fix CSS colours away from RGB notation. preg_replace_callback callback.
 *
 * @param  array $matches Array of matches
 * @return string Substituted text
 */

function _css_color_fixup(array $matches) : string