protected static function replaceSafeString($context, $str) { return $context['flags']['standalone'] ? str_replace($context['safestring'], $context['safestringalias'], $str) : $str; }