the markup here should be in the replacement string or.. no sprintf usage and only

    text <?= h($pluginDot . $class) ?>