/', '', $out); $despace = preg_replace('/\\s+/', '', $dehtml); $nbglyphs = function_exists('utf8string') ? utf8string($despace, 'strlen') : strlen($despace); $nbwords = count(preg_split('/\\s+/', $dehtml, -1, PREG_SPLIT_NO_EMPTY)); $out = str_replace([$GlyphsToken, $WordsToken], [$nbglyphs, $nbwords], $out); } $MarkupFrameBase['posteval']['glyphs'] = (IsEnabled($RevisionNum, 0) >= 5550) ? 'WordGlyphEval' : 'WordGlyphEval($out);' ;