Function __global->array_html_preg_replace

Definitions

sources/comcode_from_html.php

  • Do some regular expression matches, locked correctly to single HTML elements. This is necessary to make sure nesting is handled correctly, which regular expressions cannot do on their own.It is case-sensitive for performance reasons. But everyone uses lower case tags for a long time now. Also assumes no tabs within tag definition.
  • Is abstract?: No
  • Is static?: No
  • Is final?: No
  • Return: string

Parameters

Name Type Default Set Range Description
$element string required parameter N/A N/A The element name to replace over
$array array required parameter N/A N/A A list of pairs: Pattern, Replacement
$semihtml string required parameter N/A N/A Haystack

Return

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