Lines Matching refs:text
38 $text = $event->data;
39 $text = $this->processParserFunctions($text);
40 $event->data = $text;
43 private function processParserFunctions($text) argument
50 …$text = preg_replace_callback('/%%.*?%%|<(nowiki|code|file|html)[^>]*>.*?<\/\1>/si', function ($ma…
54 }, $text);
58 while (($match = $this->extractBalancedFunction($text)) !== false) {
60 $text = str_replace($match, $resolved, $text);
66 $text = str_replace($key, $original, $text);
69 return $text;
72 private function extractBalancedFunction($text) argument
74 $start = strpos($text, '{{#');
78 $length = strlen($text);
80 if (substr($text, $i, 3) === '{{#') {
83 } elseif (substr($text, $i, 3) === '#}}') {
88 return substr($text, $start, $i - $start + 1);